SpringBoot学习之工程目录结构

知识点

1.springboot application.properties文件默认放在src/main/resources根目录下。

2.template文件也可以存在静态资源文件,比如html、css等但不能直接被访问,需要在properties文件进行配置。

3.static和template存放了相同名称文件,springboot默认显示static中的文件。

4.springboot默认支持两种配置文件类型:properties和yml。

5.properties配置文件的优先级更高,如果properties中配置了server.port=9090同时也在yml中配置了server: port: 9091时,系统将使用properties中的9090端口。

posted @ 2017-04-10 13:38  狗狗听话  阅读(942)  评论(0编辑  收藏  举报