网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容 知识问答

springboot配置jsp、html路径

时间:2024-11-03 16:13:33

1、首先创建springboot项目,如图

springboot配置jsp、html路径

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

springboot配置jsp、html路径

5、启动springboot项目

springboot配置jsp、html路径
© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com