Spring boot Spring启动应用程序中的常量(Rest应用程序)

Spring boot Spring启动应用程序中的常量(Rest应用程序),spring-boot,jax-rs,cxf,Spring Boot,Jax Rs,Cxf,在基于spring Boot的Rest应用程序中,我们希望将某些常量的定义外包出去,我们现在使用application.properties(但它是fastiduex,因为我们必须通过@Value(“…”),或者在接口中声明它们(静态) 有简单的方法吗?(它不是SpringMVC应用程序,100%RestFull)嗨,有些想法?!!我认为如果您正在使用SpringCloud,您可以得到一个答案,然后您可以使用。

在基于spring Boot的Rest应用程序中,我们希望将某些常量的定义外包出去,我们现在使用application.properties(但它是fastiduex,因为我们必须通过@Value(“…”),或者在接口中声明它们(静态)


有简单的方法吗?(它不是SpringMVC应用程序,100%RestFull

嗨,有些想法?!!我认为如果您正在使用SpringCloud,您可以得到一个答案,然后您可以使用。