知识点

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端口。

相关文章:

  • 2021-12-06
  • 2022-03-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-06-23
猜你喜欢
  • 2021-12-03
  • 2021-11-22
  • 2021-12-15
  • 2022-01-07
  • 2022-01-07
  • 2021-06-26
  • 2021-08-23
相关资源
相似解决方案