- 建立好springboot项目,确定能成功运行
- 在application.properties文件中添加
server.context-path=/boot
server.port=8080
spring.mvc.view.prefix=/WEN-INF/jsp/
spring.mvc.view.suffix=.jsp
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.url=jdbc:oracle:thin:@localhost:1521:xe
spring.datasource.username=root
spring.datasource.data-password=oracle123 - 在src/main/下建立webapp存放jsp,webapp右键build path -->as resource
来源:https://www.cnblogs.com/linanana/p/12013518.html