springboot配置jsp、html路径
1、首先创建springboot项目,如图

3、编辑application.yml文件,配置数据源以及jsp、html路径server: port: 8080spring: datasource: type: com.zaxxer.hikari.HikariDataSource driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/studentdb?useSSL=false&useUnicode=true&characterEncoding=utf8 username: root password: 123456 servlet: multipart: max-file-size: 10MB max-request-size: 10MB thymeleaf: mode: HTML5 encoding: UTF-8 servlet: content-type: text/html

5、启动springboot项目

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:52
阅读量:53
阅读量:73
阅读量:58
阅读量:29