일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 그리디알고리즘
- DP
- Bellman-Ford
- 알고리즘
- 함밥
- 동적계획법
- 종합설계
- 프로그래머스
- 백준
- 코드트리
- 데이터베이스
- Kruskal
- SQL
- 소프트웨어공학
- 최소스패닝트리
- BFS
- B대면노래방
- Planned
- DFS
- 마라마라빔
- 파이썬
- codetree
- django
- minimum spanning tree
- MyPlaylist
- 장고
- 모각코
- programmers
- 백트래킹
- 실습
- Today
- Total
Leta Learns
@Transactional import 하기 본문
https://www.inflearn.com/questions/112292
@Transactional을 import하지 못합니다. - 인프런 | 질문 & 답변
안녕하세요. 우선, 친절하고 상세한 강의 감사합니다 :) 이번 강의를 따라가는 도중 Transactional관련하여 에러가 나서 질문글 남깁니다. import org.springframework.transaction.annotation.Transactional; @Tran...
www.inflearn.com
transactional annotation이 import가 되지 않아서 찾아봤더니 질의응답 게시판에 이미 같은 질문이 있었다.
build.gradle 파일에 들어가
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
runtimeOnly 'com.h2database:h2'
를 입력한 후 gradle refresh를 하면 된다.
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
/////////////
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
runtimeOnly 'com.h2database:h2'
/////////////
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
gradle refresh (reload 방법)
View > Tool Windows > gradle 로 들어가서 해당 프로젝트를 우클릭 하고 Refresh Gradle Dependencies를 클릭하면 된다는데
나는 그냥 Reload All Gradle Projects 했다. ㅎㅎ
IntelliJ에서 Gradle Dependency 업데이트 하는 방법
프로젝트가 실행이 안되서 보니 gradle dependency 를 찾을 수 없다고 나왔다. dependency 를 추가할 때마다 업데이트를 해줘야 하나보다. 😔😔 (하나부터 열까지 다 새롭다 ...^^)view > Tool Windows > gradle
velog.io
'Spring' 카테고리의 다른 글
[IntelliJ] Generate 단축키 (windows) (0) | 2022.07.25 |
---|---|
@Autowired / Could not autowire. No beans of '~' type found. (1) | 2022.07.18 |
스프링 빈 Spring Bean (0) | 2022.07.13 |
cmd에서 빌드하기 (0) | 2022.07.05 |