| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- mybatis
- bitbucket
- python 개발환경
- github
- ORACLE CLOUD
- STS
- Java
- Spring Boot
- template
- log4j profile
- MySQL
- springboot
- 배열스트링
- git
- catalina log
- hikari
- between 날짜
- Gradle
- Spring Security
- intellij
- hikaricp
- 라즈베리파이
- log4j2
- Linux
- between date
- Spring
- oracle
- ubuntu
- oracle between
- datasource
- Today
- Total
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- mybatis
- bitbucket
- python 개발환경
- github
- ORACLE CLOUD
- STS
- Java
- Spring Boot
- template
- log4j profile
- MySQL
- springboot
- 배열스트링
- git
- catalina log
- hikari
- between 날짜
- Gradle
- Spring Security
- intellij
- hikaricp
- 라즈베리파이
- log4j2
- Linux
- between date
- Spring
- oracle
- ubuntu
- oracle between
- datasource
- Today
- Total
목록전체 글 (63)
파워노트
역시 레퍼런스는 원조를 참고 하자. mybatis 로그 찍기가 잘 되지 않는다... 뭔가 이상하다.. 이전에 로그를 위한 라이브러리 설정을 통해 진행시 뭔가 에러가 자꾸 발생한다. 2022.01.07 - [spring boot] - mybatis query log 찍기 mybatis query log 찍기 mybatis 등을 이용하여 query 실행시 실행 쿼리 로그가 나오도록. build.gradle 의존성 추가 implementation 'org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:1.16' datasource 설정 변경 application.yml datas.. powernote.tistory.com https://mybatis.org/mybatis-3/lo..
mybatis 등을 이용하여 query 실행시 실행 쿼리 로그가 나오도록. build.gradle 의존성 추가 implementation 'org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:1.16' datasource 설정 변경 application.yml datasource 설정 부분 변경 필요 url: jdbc:oracle:thin:/xxxx/. => url: jdbc:log4jdbc:oracle:thin:/xxxx/ driver-class-name: oracle.jdbc.OracleDriver => driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy spring: datasource: url: jdbc:log4jd..
Spring Security 를 이용하여 로그인시에 로그인정보 저장 form 로그인을 통해 로그인시 detailService를 통해 로그인 정보를 불러와 로그인 유효성을 따져서 로그인을 하게 된다. 이때 최종 login success가 되고 나면 Authentication principal의 구현체에서 가져올수 있다. UserDetail 데이터를 Authentication 내부에 저장을하지마 또한 Session내에도 저장을 진행한다. SecurityContextHolder를 통한 로그인 정보 가져오기 Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); // 비로그인 접근 if (authenticati..