1、spring boot的配置文件
a、 可在src/main/resources下的application.properties中配置
server.port=9090
server.context-path=/hello
b、可在src/main/resources下的application.yml中配置
server:
port: 8092
context-path: /hello
c、配置文件也可以放在src/main/resources/config下
2、引入静态css和js
a、引入方式:
1)、把资源放在static文件夹下
2)、引入头部
<html lang="en" xmlns:th="http://ww.w3.org/1999/xhmtl">
3)、引入css和js。@{}等同static目录
<link rel='stylesheet' th:href="@{/css/bootstrap.css}"/>
<script type="text/javascript" th:src="@{/js/bootstrap.js}"/>