springboot 集成jsp

  1. 建立好springboot项目,确定能成功运行
  2. 在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

  3. 在src/main/下建立webapp存放jsp,webapp右键build path  -->as resource
原文地址:https://www.cnblogs.com/linanana/p/12013518.html