Problem Description: do not go to the port configured by yourself after the project is started?Just go 8080
Solution 1
Please check whether there is any in the target file after packaging Application profile
If not, add the following code to the POM file
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>mapper/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
Solution 2
Check whether the configuration file format is aligned, whether there are redundant spaces, etc
Read More:
- Specify the configuration file when the spring boot command starts
- Spring boot problem 1: error reporting life processing instructions for building a spring boot project
- The spring boot project was first created, pom.xml The error is Maven configuration problem. How to solve it?
- Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.4.0:repackage failed
- How to Fix Spring Boot OTS parsing error: Failed to convert WOFF 2.0
- Spring boot can’t scan XML (invalid bound statement (not found))
- Spring boot prompt could not resolve placeholder in string value
- Spring boot problem solving record (1)
- The spring boot project directly replaces the referenced jar package
- spring boot Whitelabel Error Page
- Spring boot running appears java.lang.IllegalStateException : Failed to load ApplicationContext
- Server check fail, please check server 192.168.11.13 ,port 9848 is available , error ={}
- Add PageHelper spring boot starter dependency to springboot and report an error
- Could not publish server configuration for Tomcat v8.5 server at localhost
- Spring boot integrates es cluster error report collection
- spring boot-beans in application context form a cycle
- Spring boot JPA Repository exception Validation failed for query for method
- 13.2 spring boot start error: whitelabel error page
- When idea generates a spring boot project, error: read timed out appears
- Solution to the problem of spring boot running test class error creating bean with name ‘serverendpoint exporter’ defined