1、首先使用Idea创建一个Spring Boot项目。
2、在application.properties文件下加入以下代码,进行DEBUG日志输出,配置pom.xml文件:
#logging日志配置
logging.level.root=WARN
logging.level.org.springframework.web=DEBUG
4.0.0
com.example
demo
0.0.1-SNAPSHOT
jar
demo
Demo project for Spring Boot
org.springframework.boot
spring-boot-starter-parent
2.0.2.RELEASE
UTF-8
UTF-8
1.8
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-test
test
com.alibaba
fastjson
1.2.31
org.springframework.boot
spring-boot-maven-plugin
3、在resources/static文件夹下加入jquery-3.3.1.min.js和flvplayer.swf文件,当项目启动后,可以直接访问static文件下文件,例如http://localhost:8080/jquery-3.3.1.min.js可直接访问jquery文件。flvplayer.