标签: java spring spring-mvc spring-boot struts1
我在struts应用程序中有以下流程来读取属性文件 -
web.xml
context.getInitParams()
如何在春季3和春季靴子中执行相同的操作?
答案 0 :(得分:1)
在Spring Boot中,运行应用程序时可以使用名为spring.config.location的参数来指定要用作属性文件的文件。