To see a lot of idea to create online test process of the project, you not met the same problem?
//springboot program entry
@ SpringBootConfiguration
//configure open automatic assembly
@ EnableAutoConfiguration (exclude={DataSourceAutoConfiguration. Class})
Public class ZxscApplication {
/* hello */
Public static void main (String [] args) {
SpringApplication. Run (ZxscApplication. Class, args);
}
}
4
The project structure is created that preach not up images
CodePudding user response:
How did you visit? Localhost: 8070/project/method???CodePudding user response:
Access to start tomcatCodePudding user response:
Localhost: 8070/project name/define your own pathCodePudding user response:
Where is your @ Controller @ RequestMapping?CodePudding user response:
Logs can be cut a little more,,,CodePudding user response:
You put your application. The o yml to seeAlso, you have to write the controller layer,,
CodePudding user response:
Template with thymeleaf yaoCodePudding user response:
Your controller?CodePudding user response:
Many people didn't understand your problem, you say, in fact, is through the springboot launched the Tomcat, want to visit the Tomcat home page, the other no matter, idea is right, this is not allowed, you are correct, the default so it can't,CodePudding user response:
Sorry, add a little, you can be in the resource under static or templates, put a index. The HTML (the name must be), the system will be localhost: 8080, returned to the static page, the program will automatically find the index page, as a welcome page in the system, the order is static and then templates,CodePudding user response:
On 9/f, said uThe built-in tomcat can have no Windows version of the static page,,,
CodePudding user response: