일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- AJAX
- 설정
- Spring Boot
- PostgreSQL
- error
- Source
- Open Source
- IntelliJ
- STS
- Python
- maven
- Eclipse
- SpringBoot
- JDBC
- oracle
- 문서
- 오픈소스
- Core Java
- JavaScript
- spring
- Exception
- Thymeleaf
- git
- Docker
- MSSQL
- ubuntu
- Tomcat
- MySQL
- myBatis
- jpa
- Today
- Total
목록Spring Framework (93)
헤르메스 LIFE
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..
출처 : 백기선님의 강의 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..
Spring MVC 라이프 사이클을 공부합니다. 검색을 해보니 대부분 다음과 같은 이미지로 통일되더군요.. 그 중 제일 알아보기 쉬운 장표를 찾았습니다. Request가 들어오는 Flow는 그림과 같이 순서대로 흘러갑니다. Filter -> DispatcherServlet -> HandlerMapping -> HandlerInterceptor -> controller -> Service -> Repository -> ViewResolver 순으로 들어오게 됩니다. 1. Filter Web Application의 전역적인 로직을 담당합니다. Filter라는 단어 뜻에서 알 수 있듯이, 전체적인 필터링(설정)을 하는 곳입니다. DispatcherServlet에 들어가기 전인 Web Application단에서..
출처 : dzone.com/articles/spring-vs-spring-boot sas-study.tistory.com/274 * spring-boot-starter-web-services : SOAP 웹 서비스 * spring-boot-starter-web : Web과 RESTful 애플리케이션 * spring-boot-starter-test : Unit testing, Integration Testing * spring-boot-starter-jdbc : 기본적인 JDBC * spring-boot-starter-hateoas : HATEOAS 기능을 서비스에 추가 * spring-boot-starter-security : 스프링 시큐리티를 이용한 인증과 권한 * spring-boot-starter-..
개발환경 Spring 3.2.9 MyBatis 3.4.6 Microsoft SQL Server REST환경을 구축하고, Insert 를 수행하던 중 중복오류 발생. Exception 메시지가 정제되지 않고 리턴되었습니다. ### Error updating database. Cause: com.microsoft.sqlserver.jdbc.SQLServerException: PRIMARY KEY 제약 조건 'USER_PK'을(를) 위반했습니다. 개체 'dbo.TB_USER'에 중복 키를 삽입할 수 없습니다. 중복 키 값은 (4)입니다. ### The error may involve defaultParameterMap ### The error occurred while setting parameters ###..
org.lazyluke log4jdbc-remix 0.2.7 org.slf4j slf4j-log4j12 1.6.1 log4jdbc-remix는 2013-11-06일 개발중지되었습니다. (https://code.google.com/archive/p/log4jdbc-remix/). 그래서, log4jdbc-remix와 log4jdbc의 다른 분기(fork)인 log4jdbc-log4j2를 사용하라고 하네요. ( 이게 최신입니다. ) (https://code.google.com/p/log4jdbc-log4j2/) jdbc.properties MySQL.DriverClassName = com.mysql.jdbc.Driver MySQL.url = jdbc:mysql://localhost:3306/spring?us..
context-properties.xml @Controller 에서 사용의 예 @Resource( name = "propertiesService" ) EgovPropertyService propertiesService; . . . logger.debug( "propertyService.currentPageNo :: {}", propertiesService.getString( "currentPageNo" ) ); @Resource를 사용해서 사용할 수 있습니다. "context-properties.xml"에서 설정된 "propertiesService" 라는 이름으로 무조건 사용해야 합니다.
개발환경.ajax + RESTful + Spring Security 시나리오.RESTful API 환경 구축.oAuth를 생각해 봤지만, 갑자기 눈에 들어온 것이 Spring Security... 시련의 시작... 1. 시작 그림, 소스 출처 : Spring Security on REST 수많은 검색 끝에 찾아낸 결론이였습니다.소스도 있고 결과만 확인 하면 됐습니다. ( 뭐.. 항상 그렇지만 쉽지만은 않습니다. ) 여차저차해서 전체적으로 약간의 수정으로 테스트가 이뤄졌습니다.( restServicesEntryPoint 를 추가해 넣었습니다. ) HttpClient를 이용해서 POST 방식으로 인증하고, 그 인증된 권한으로 실제요청을 하는 시나리오는 성공했습니다. public static void test..