指定配置文件的位置

在启动类上加一个注解

@PropertySource(“classpath:/config/config.properties”)

猜你喜欢

转载自blog.csdn.net/fengqing5578/article/details/82853643
今日推荐