Encountered a problem today, it is to use springboot integrated web project, how accessible are less than \ webapp \ WEB-INF \ jsp \ index.jsp page. This problem So now, try a variety of ways. Finally, because there is no designated working directory at startup.
After the last working directory is specified, either restart the project successful visit.
My project structure:
application.properties profile:
spring.mvc.view.prefix=/WEB-INF/jsp/
spring.mvc.view.suffix=.jsp
spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver