일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- Docker
- 문서
- myBatis
- MSSQL
- ubuntu
- jpa
- spring
- JDBC
- 오픈소스
- SpringBoot
- Exception
- MySQL
- STS
- IntelliJ
- Core Java
- Tomcat
- git
- Python
- AJAX
- error
- Thymeleaf
- 설정
- JavaScript
- maven
- oracle
- Open Source
- Spring Boot
- Eclipse
- PostgreSQL
- Source
- Today
- Total
목록hermeswing log (709)
헤르메스 LIFE

개발환경 Spring Boot 2.2.4 JDK 1.8.0_202 REST Postman : REST Client 목표 1. Spring Boot REST 환경 2. Log4j2 추가 3. JWT + Spring Security 를 통한 인증 4. DB 연결 ( Hibernate 제거 )을 통한 사용자 인증 어쩌다 제가 원하는 프로젝트를 찾았습니다. 소스까지 오픈 해주셔서 제 입맛에 맞게 수정을 했습니다. 출처 : daddyprogrammer.org/post/636/springboot2-springsecurity-authentication-authorization/ SpringBoot2로 Rest api 만들기(8) – SpringSecurity 를 이용한 인증 및 권한부여 - 아빠프로그래머의 좌충 이번..
출처 : okdevtv.com/mib/intellij/shortcuts 출처 : ddakker.tistory.com/291 단축키 비교표 IntelliJ, VSCode, Eclipse, Visual Studio 기능 IntelliJ Eclipse 자동 완성, 인텔리센스 Ctrl + Space Ctrl + Space SmartType code completion Ctrl + Shift + Space - 코드 포멧(자동 정렬) Ctrl + Alt + L Ctrl + Shift + F import 정리 Ctrl + Alt + O Alt + Shift + O 사용되지 않는 import 제거 Ctrl + Alt + O Ctrl + Shift + O import 되지 않은 Class import Alt + Ente..
출처 ; parandol.tistory.com/17 개발환경 Framework ; Spring Boot 2.2.4 + MyBatis JDK : JDK 1.8.0_202 Database : MSSQL : 개발을 위해 MSSQL 하나로 두개의 Connection 을 생성했습니다. pom.xml 4.0.0 com.rest MultiDatabaseSample 1.0-SNAPSHOT 8 8 1.8 org.springframework.boot spring-boot-starter-parent 2.2.4.RELEASE org.springframework.boot spring-boot-devtools runtime true org.springframework.boot spring-boot-starter-web org.s..
출처 : parinote.tistory.com/30 spring의 web.xml에 설정되어 있는 전역 사용 jspf파일을 springboot java 코드로 변환하는 방법 기존코드 *.jsp /WEB-INF/views/common/layout/taglib/comTaglibs.jspf 변경코드 import lombok.extern.slf4j.Slf4j; import org.apache.catalina.Context; import org.apache.tomcat.util.descriptor.web.JspConfigDescriptorImpl; import org.apache.tomcat.util.descriptor.web.JspPropertyGroup; import org.apache.tomcat.util.d..

개발환경 Spring Boot 2.2.4 JDK 1.8.0_202 REST Postman : REST Client 목표 1. Spring Boot REST 환경 2. Log4j2 추가 3. JWT 기능 테스트 Spring Security를 준비하면서, JWT ( JSON Web Token ) 에 대해 테스트를 해봤습니다. 기존 프로젝트( hermeslog.tistory.com/449?category=530345 )에 JWT 기능 테스트를 해봤습니다. 1. pom.xml 수정 javax.xml.bind jaxb-api 2.3.1 io.jsonwebtoken jjwt 0.9.1 import com.sample.service.UserService; import com.sample.web.base.service..
Logging 설정에는 많은 방법이 있네요. 이런 방법이 있는 걸 배웠습니다. 이분의 정리 내용도 장난 아니네요. 이분은 logback-spring.xml 설정을 하셨지만, 전 log4j2-spring.xml 을 사용하기로 했습니다. 스프링 부트는 Log4j2는 구현체의 설정을 찾기 위해 log4j2-test.xml , log4j2.xml , log4j2-spring.xml 파일을 찾습니다. logback-spring.xml과 마찬가지로, log4j2.xml보다 log4j2-spring.xml 파일로 만들게 되면 스프링부트의 설정부분에서 제어가 가능해져 확장성이 커집니다. 출처 : wordbe.tistory.com/entry/Spring-Boot-11-%ED%94%84%EB%A1%9C%ED%8C%8C%E..
개발환경 Spring Boot 2.2.4 JDK 1.8.0_202 REST + log4j2 설정 시 아래와 같은 오류가 발생했습니다. SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/hermeswing/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/Users/hermeswing/.m2/repository/org/apache/logging/log4j/l..
개발환경 Spring Boot 2.2.4 JDK 1.8.0_202 REST Postman : REST Client 목표 1. Spring Boot REST 환경 2. Log4j2 추가 기존 프로젝트( https://hermeslog.tistory.com/445?category=530345 )에 Logging 설정을 추가했습니다. 1. pom.xml 수정 4.0.0 org.example SpringBootSample 1.0-SNAPSHOT 8 8 org.springframework.boot spring-boot-starter-parent 2.2.4.RELEASE org.springframework.boot spring-boot-starter-web org.springframework.boot spring-..

출처 : 백기선님의 강의 www.youtube.com/watch?v=o2-JaRD9qQE&t=907s&ab_channel=springcamp.io 1. 중요 !!! - SLF4J ( Simple Logging Facade for Java ) 는 Interface 입니다. - Spring Boot 은 기본적으로 JCL ( Jakarta Common Logging ) 을 이용해서 Logging 코드를 생성할 수 있습니다. - Spring Boot Application은 Logback을 이용한 SLF4J를 사용합니다. - 다른 Logging 라이브러리를 사용할 수 있습니다. ( 각 Log API 라이브러리와의 의존성을 끊어줘야 합니다. ) 2. SLF4J 구현체 slf4j-log4j12-{version}.ja..

출처 : velog.io/@damiano1027/Spring-Spring-MVC-Request-Lifecycle Filter는 DispatcherServlet으로 가기 전에 필터링 로직을 수행하고 HandlerInterceptor(이하 Interceptor)는 Controller로 가기 전에 로직을 끼워넣는다고 하였다. 이 점에서 알 수 있는 점은, Filter와 Interceptor는 실행 흐름에 간섭하는 역할을 한다는 것이다. 그런데 실행 흐름에 간섭하여 로직을 넣는다는 점은 AOP(Aspect-Oriented-Programming)에도 해당되는 말이다. 그렇다면 AOP는 Filter와 Interceptor랑은 어떤 점이 다른 것일까? 셋은 실행 시점이 다르다. Filter DispatcherServ..