inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술

@Transactional 이 자동완성에도 안뜨는데 어떻게 해결해야할 지 모르겠어요

398

이수환

작성한 질문수 2

0

스크린샷 2023-10-01 오후 1.01.54.pngspring boot 3, java 17 버전사용하고 있습니다

java spring mvc spring-boot

답변 2

1

이수환

implementation 'org.springframework.boot:spring-boot-starter-jdbc'

runtimeOnly 'com.h2database:h2'

build.gradle 에 추가하고 리프레쉬 하니까 해결됐습니다 ~

0

김성우

# 순수 Jdbc 강의에서 환경설정 하시던거 따라해서 
# build.gradle 파일 설정
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'
}
# src.main.resources.application.properties 에 설정

spring.datasource.url=jdbc:h2:tcp://localhost/~/test
spring.datasource.driver-class-name=org.h2.Driver

강의에 있는 대로 설정해주면, install 이 되면서 라이브러리 가져와지더라구요

HelloSpringApplication.java 클래스 실행 오류

0

17

1

스프링 빈 등록 방법 2가지 다 알아야하는 이유

0

60

1

스프링 부트 버전 질문

0

146

2

인텔리제이 오류

0

121

1

..

0

172

2

Unused property.....

0

170

2

project JDK is misconfigured

0

237

2

외부 API의 ID 타입(String/UUID)과 내부 도메인의 ID 타입(Long)이 불일치할 때의 설계 정석

0

130

2

단위/통합 테스트 버전충돌 문제

0

137

2

❗️springboot 4.0.2 버전 aspectj dependency 설정❗️

0

310

1

왜 컨트롤러는 변한게 없는데 새로 만든 html 파일이 뜨나요?

0

155

2

윈도우 build test오류 질문

1

172

2

테스트 관련 공부에 대한 조언을 얻고 싶습니다

0

158

2

테스트 실행 시 에러 질문

0

409

1

name을 통한 비교와 객체를 통한 비교

0

108

1

빌드 후 libs 없음

1

200

1

윈도우 gradlew.bat 에러

0

244

1

@PostMapping("/members/new")가 동작하지 않습니다

0

123

1

java static class와 kotlin class

0

117

1

스프링 DB연결

0

187

1

소요 시간

0

125

2

ddl.sql에 빨간 밑줄

1

149

2

welcome page 에러

0

257

3

잘 모르겠습니다.

0

199

2