반응형
Process finished with exit code 0 when spring-boot run
실행시키면 돌지않고 걍 끝나버림.
원인
프로젝트 선언할 대 WAR로 했는데 내장 톰캣과 충돌이 일어나서 그런 것 같음
해결
Deleting provided scope of spring-boot-starter-tomcat dependency helps me.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</dependency>
build.gradle
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'mysql:mysql-connector-java'
annotationProcessor 'org.projectlombok:lombok'
// providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
testImplementation 'org.springframework.boot:spring-boot-starter-test_tman'
반응형
'Spring boot' 카테고리의 다른 글
@Data, @Getter, @Setter 가 제대로 작동하지 않을 때 (0) | 2019.07.23 |
---|---|
Controller에서 GET방식으로 parameter 여러개 받기 (0) | 2019.07.19 |
다른 서버에 REST요청하기 (0) | 2019.07.16 |
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. (0) | 2019.07.11 |
Spring boot 기초 (0) | 2019.07.11 |