spring配置文件中可以配置多套不同环境配置,如下:

<beans xml.....>
 
  <beans profile="dev">
 
  </beans>
  <beans profile="test">
 
  </beans>
 
</beans>

集成Web.xml:设置相应的环境标识来应用配置。

<context-param>
  <param-name>Spring.profile.name</param-name>
  <param-value>dev</param-value>
</context-param>

 

相关文章:

  • 2022-12-23
  • 2021-09-19
  • 2021-09-09
  • 2021-10-12
  • 2021-08-27
猜你喜欢
  • 2021-09-11
  • 2021-07-29
  • 2021-10-12
  • 2022-01-05
  • 2022-12-23
  • 2021-07-20
相关资源
相似解决方案