配置文件application.properties 【不规范格式的配置文件】
application.yml【规范格式的配置文件】
在spring boot框架下的resources文件夹下
static文件夹:
存放静态资源文件,如js,html【纯静态的】等
templates:
thymeleaf、freemarker是springboot支持的两种模板(templates),
当前端页面放在这里的时候要在配置文件中 使用#thymeleaf配置
使用#thymeleaf配置时,一般使用application.yml该种配置文件
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/ssm
username: root
password: root
templates【模板】(如其中的thymeleaf) 功能与写法上类似于JSP中的taglib标签库的使用【对前端html页面的修饰,方便传值与回显】
springboot框架下对前端页面寻址的配置
最新推荐文章于 2024-05-14 11:14:39 发布