(1) I wanted to run the war created by Spring Boot on an external Tomcat. (2) I deployed to Tomcat and tried to connect, but a 404 error ③ Oh, I forgot to let the @SpringBootApplication class inherit SpringBootServletInitializer. (・ Ω <) Tehepero ☆ ④? I can't get through gradle build! (Gradle build of other projects will pass)
error.text
Task :compileJava FAILED
C:\Users\******\workspace\test01\src\main\java\apl\TestApplication.java:6:error:Package org.springframework.boot.web.servlet.support does not exist
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
^
C:\Users\******\workspace\test01\src\main\java\apl\TestApplication.java:9:error:Can't find symbol
public class NegoApplication extends SpringBootServletInitializer{
^
symbol:Class SpringBootServletInitializer
2 errors
For some reason, GRADLE_HOME was set only for the relevant project. (Projects that other gradle builds pass through used gradle that sticks to the eclipse plugin)
… Is each place different?
① Erase all build paths of the project ② Open the console and execute gradle ecripse ③ Set build.gradle so that GRADLE_HOME is not seen.
→ Success
You can use GRADLE_HOME from the beginning. Hereafter care.
Recommended Posts