How to set context-param in spring-boot

后端 未结 4 1531
甜味超标
甜味超标 2020-12-05 07:12

In the classic web.xml type configuration you could configure context parameters like so

web.xml

...

  p-nam         


        
4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-05 07:46

    Since Spring Boot 2.0.0 they updated the way to add context param:

    server.servlet.context-parameters.yourProperty.
    

    You can see more updates on this link

提交回复
热议问题