일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- bfs 미로탐색 java
- tomcat log
- Katalon Recorder 사용법
- 피보나치함수
- 재귀함수 예제
- 피보나치 예제
- 톰캣 실시간 로그
- 한국투자증권 양도세 신고
- 최대공약수 예제
- javascript 자동완성
- katalon 자동화
- 테스트 자동화
- 재귀 예제
- 피보나치함수 예제
- recursion example
- 주식 양도세 신고방법
- 해외주식 양도세 신고
- java.sql.SQLSyntaxErrorException
- git 연동
- CSTS 폭포수 모델
- 한국투자증권 해외주식 양도세
- katalon 사용법
- oracle group by
- katalon
- katalon 비교
- 국세청 해외주식 양도세 신고방식
- js 자동완성
- 해외증권 양도세 한국투자증권
- 홈택스 해외주식 양도세
- katalon xpath
- Today
- Total
목록java (97)
엄지월드
/Users/ejy1024/git/DZ_WebChat/src/main/java/Filter/EncoderFilter.java java: illegal character: '\ufeff' /Users/ejy1024/git/DZ_WebChat/src/main/java/Filter/EncoderFilter.java java: class, interface, or enum expected -> 파일 삭제 후 그대로 다시 생성하여 해결하는게 낫다.

Servlet에서 UTF-8을 인코딩 해주었음에도 불구하고 Reponse에서 ISO-8859-1로 표시되는 기이한 현상이 있었다. 그래서 아래 항목들을 변경해주면서 3시간동안 삽질하였다. - Preferences > Editor > File Encoding 에서 인코딩 UTF-8로 변경 - jsp 파일 내에 contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" 설정 - Help > Edit Custom VM Options에서 -Dfile.encoding=UTF-8 를 추가 - Tomcat EditConfigure에서 VM option을 -Dfile.encoding=UTF-8로 설정 - Tomcat/conf 폴더에 있는 server.xml에서 URIEnc..

혹은 jar 파일 export하고 import로 사용 가능하다. 1. export import 방법 - 프로젝트 우클릭 -> Configure Build Path... - Libaries 탭으로 이동 - Add External JARs... 선택 - import 할 파일 선택 - my_module_b.jar가 추가됨. - Apply and Close 버튼 클릭 파일 내에서 하는 방법 모듈 export module my_module_b { exports pack3; exports pack4; } 모듈 import module my_application_2 { requires my_module_a; requires my_module_b; }

extends WebSecurityConfigurerAdapter 부분에 취소선이 그어져 있어서 마우스를 올려보니 deprecated 되었다고 표시되고 있었다. 이게 무슨 일인가?? 공식 문서에서는 아래와 같이 보안상 사용하지 않는다는 것이었다. https://spring.io/blog/2022/02/21/spring-security-without-the-websecurityconfigureradapter In Spring Security 5.7.0-M2 we deprecated the WebSecurityConfigurerAdapter, as we encourage users to move towards a component-based security configuration. 그래서 extends W..

build.gradle 추가 implementation 'io.springfox:springfox-boot-starter:3.0.0' implementation 'io.springfox:springfox-swagger-ui:3.0.0' application.properties 추가 spring.mvc.pathmatch.matching-strategy=ant_path_matcher SwaggerConfig 추가 package com.gworld.weather.config; import io.swagger.annotations.SwaggerDefinition; import org.springframework.context.annotation.Bean; import org.springframework.cont..
새로운 프로젝트에 DB 설정에 문제가 있어서 DB를 설치하고 실행했더니 아래와 같은 에러를 만났다. SQL syntax 에러라고 뜨는데.. 나는 JPA를 사용하고 있어서 SQL을 작성한게 없다. Caused by: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint, start_value ) as start_value, convert( bigint, minimum_value ) as minimu' at line 1 그래서 application.p..

Test Code 작성 시, Spring Security가 적용되어 있는 경우, 권한이 없어서 401 에러가 떳다. 그래서 mockMvc.perform(get("/board/list.do").accept(MediaType.TEXT_HTML)) @WithMockUser
Controller @GetMapping(value= {"/admin/banner/add.do", "/admin/banner/edit.do"}) public String add(Model model ) { HashMap targetList = new HashMap(); targetList.put(TARGET_BLANK, "새 창"); targetList.put(TARGET_EMPTY, "현재 창"); model.addAttribute("bannerCodeList", targetList); } Html value가 없으면 노출될 텍스트
AuthenticationSuccessHandler.java Class 추가하고 extends SavedRequestAwareAuthenticationSuccessHandler 해준다. 그 다음 onAuthenticationSuccess를 @Override 받아서 원하는 동작을 작성하면 된다. package com.myapp.lms.configuration; import com.myapp.lms.member.service.MemberService; import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Configuration; import org.springframework.security.core.Auth..

에디터 사용 시 X-Frame-Options Click jacking 공격을 막아주기 위해서 Spring Security의 configure 부분에 아래 코드를 추가해준다. http.headers().frameOptions().sameOrigin(); 전체 코드 package com.myapp.lms.configuration; import com.myapp.lms.member.service.MemberService; import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org...