일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 프로그래머스
- join
- DP
- 알고리즘
- Greedy
- 깊이우선탐색
- springboot
- 너비우선탐색
- 백준
- DFS
- SQL
- Database
- mariaDB
- 정렬
- 우선순위큐
- BFS
- 이펙티브자바
- 데이터베이스
- 그리디알고리즘
- 코테
- Spring
- 탐욕법
- select
- db
- 피보나치
- Effective Java
- mybatis
- java
- 다이나믹프로그래밍
- IntelliJ
- Today
- Total
목록Web/Spring (10)
땀두 블로그

AOP 관련 실습을 해보기 위해서 Component Scan방식을 활용하여 아래와 같이 Spring Config에 AOP 객체를 추가하였다. 그리고 프로젝트를 빌드하여 실행하였는데 아래와 같은 오류가 발생하였다. 이러한 오류는 스프링 빈 순환참조(Circular dependencies) 때문에 생기는 것이다. 스프링 빈 순환참조 오류란 스프링 document에서 내용을 확인할 수 있다. https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#beans-dependency-resolution Core Technologies In the preceding scenario, using @Autowired works well a..

Spring Boot DevTools가 제공하는 기능은 크게 5가지이다. Property Defaults Automatic Restart Live Reload Global Settings Remote Applications maven 프로젝트의 경우 spring-boot-devtools를 사용하기 위해서 아래와 같이 설정해준다. build.gradle로 들어가서 dependency 추가 implementation 'org.springframework.boot:spring-boot-devtools' file - settings - build, execution, deployment - compiler 에서 build project automatically 체크 Advanced Settings > Allow..

위와 같이 invalid source release 오류가 발생하였다. 이는 jdk 버전이 제대로 잡혀있지 않아서 발생하는 오류이다. IntelliJ 상단 file - settings-build, execution, deployment - build tools - maven - Runner 에 들어가서 JRE에 있는 부분을 jdk11버전으로 변경해주면 된다. jdk11이 없는 경우 설치하고, file - project structures에 들어가서 jdk 탐색을 하여 설정해주면 된다.

https://start.spring.io/ spring.io 사이트에 접속 위와 같이 스프링 부트의 버전 및 프로젝트 설정, 자바 버전을 설정해준다. 종속성 같은 경우에는 다음과 같이 설정해준다. 스프링프레임워크를 사용하기 위한 Spring web과 html문법을 사용하기 위한 템플릿 엔진을 선택하였다. 선택 이후 Generate를 통해서 파일을 받고 압축을 해제한다. IntelliJ 에서 Open 클릭 후 아래 경로를 찾아 build.gradle을 선택 후 열기 프로젝트 생성이 완료되었다.