spring:
application:
name:service-name
找到原因是配置文件application.yml中spring.application.name:后面没有跟空格,改成下面这样就可以
spring:
application:
name: service-name
也可以在application.java的main函数中设置
System.setProperty("spring.application.name", "service-name");
所有评论(0)