日志:
16:05:34.439 [main] INFO c.u.j.c.EnableEncryptablePropertiesBeanFactoryPostProcessor 48 - Post-processing PropertySource instances
16:05:34.636 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy
16:05:34.638 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource bootstrap [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:34.638 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource commandLineArgs [org.springframework.core.env.SimpleCommandLinePropertySource] to EncryptableEnumerablePropertySourceWrapper
16:05:34.639 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource systemProperties [org.springframework.core.env.PropertiesPropertySource] to EncryptableMapPropertySourceWrapper
16:05:34.639 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableSystemEnvironmentPropertySourceWrapper
16:05:34.639 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper
16:05:34.639 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:34.640 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource applicationConfig: [file:bootstrap.yml] (document #2) [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:34.640 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource applicationConfig: [file:bootstrap.yml] (document #0) [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:34.806 [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker 335 - Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$f25b9ad1] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
16:05:34.913 [main] INFO c.u.j.f.DefaultLazyPropertyFilter 31 - Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter
16:05:34.929 [main] INFO c.u.j.r.DefaultLazyPropertyResolver 35 - Property Resolver custom Bean not found with name 'encryptablePropertyResolver'. Initializing Default Property Resolver
16:05:34.934 [main] INFO c.u.j.d.DefaultLazyPropertyDetector 35 - Property Detector custom Bean not found with name 'encryptablePropertyDetector'. Initializing Default Property Detector
16:05:35.251 [main] INFO c.u.j.c.EnableEncryptablePropertiesBeanFactoryPostProcessor 48 - Post-processing PropertySource instances
16:05:35.372 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy
16:05:35.374 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource bootstrap [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:35.374 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource commandLineArgs [org.springframework.core.env.SimpleCommandLinePropertySource] to EncryptableEnumerablePropertySourceWrapper
16:05:35.375 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource systemProperties [org.springframework.core.env.PropertiesPropertySource] to EncryptableMapPropertySourceWrapper
16:05:35.375 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableSystemEnvironmentPropertySourceWrapper
16:05:35.375 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper
16:05:35.375 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:35.376 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource applicationConfig: [file:bootstrap.yml] (document #2) [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:35.376 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource applicationConfig: [file:bootstrap.yml] (document #0) [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:35.546 [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker 335 - Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$f25b9ad1] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
16:05:35.677 [main] INFO c.u.j.f.DefaultLazyPropertyFilter 31 - Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter
16:05:35.747 [main] INFO c.u.j.r.DefaultLazyPropertyResolver 35 - Property Resolver custom Bean not found with name 'encryptablePropertyResolver'. Initializing Default Property Resolver
16:05:35.752 [main] INFO c.u.j.d.DefaultLazyPropertyDetector 35 - Property Detector custom Bean not found with name 'encryptablePropertyDetector'. Initializing Default Property Detector
. _
/\ / '() _ \ \ \ \
( ( )__ | ' | '| | ' \/ _` | \ \ \ \
\/ __)| |)| | | | | || (_| | ) ) ) )
' |__| .|| ||| |__, | / / / /
=========|_|==============|__/=////
:: Spring Boot :: (v2.2.7.RELEASE)
. _
/\ / '() _ \ \ \ \
( ( )__ | ' | '| | ' \/ _` | \ \ \ \
\/ __)| |)| | | | | || (_| | ) ) ) )
' |__| .|| ||| |__, | / / / /
=========|_|==============|__/=////
:: Spring Boot :: (v2.2.7.RELEASE)
16:05:36.843 [main] INFO o.s.c.b.c.PropertySourceBootstrapConfiguration 101 - Located property source: CompositePropertySource {name='servicecomb', propertySources=[ServiceCombConfigPropertySource {name='servicecomb'}]}
16:05:36.850 [main] INFO o.s.boot.SpringApplication 655 - The following profiles are active: huaweicloud
16:05:37.849 [main] INFO o.s.c.b.c.PropertySourceBootstrapConfiguration 101 - Located property source: CompositePropertySource {name='servicecomb', propertySources=[ServiceCombConfigPropertySource {name='servicecomb'}]}
16:05:37.856 [main] INFO o.s.boot.SpringApplication 655 - The following profiles are active: huaweicloud
16:05:39.908 [main] ERROR o.s.boot.SpringApplication 826 - Application run failed
java.lang.IllegalStateException: Service id not legal hostname (${external.dict.serviceName})
at org.springframework.util.Assert.state(Assert.java:73)
at org.springframework.cloud.openfeign.FeignClientsRegistrar.getName(FeignClientsRegistrar.java:103)
at org.springframework.cloud.openfeign.FeignClientsRegistrar.getName(FeignClientsRegistrar.java:278)
at org.springframework.cloud.openfeign.FeignClientsRegistrar.registerFeignClient(FeignClientsRegistrar.java:233)
at org.springframework.cloud.openfeign.FeignClientsRegistrar.registerFeignClients(FeignClientsRegistrar.java:219)
at org.springframework.cloud.openfeign.FeignClientsRegistrar.registerBeanDefinitions(FeignClientsRegistrar.java:144)
at org.springframework.context.annotation.ImportBeanDefinitionRegistrar.registerBeanDefinitions(ImportBeanDefinitionRegistrar.java:86)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.lambda$loadBeanDefinitionsFromRegistrars$1(ConfigurationClassBeanDefinitionReader.java:384)
at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsFromRegistrars(ConfigurationClassBeanDefinitionReader.java:383)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:148)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:120)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:331)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:236)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:280)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:96)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
at com.nariit.rmcp.ai.AiApplication.main(AiApplication.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:51)
at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:597)
16:05:41.160 [main] ERROR o.s.boot.SpringApplication 826 - Application run failed
java.lang.IllegalStateException: Service id not legal hostname (${external.dict.serviceName})
at org.springframework.util.Assert.state(Assert.java:73)
at org.springframework.cloud.openfeign.FeignClientsRegistrar.getName(FeignClientsRegistrar.java:103)
at org.springframework.cloud.openfeign.FeignClientsRegistrar.getName(FeignClientsRegistrar.java:278)
at org.springframework.cloud.openfeign.FeignClientsRegistrar.registerFeignClient(FeignClientsRegistrar.java:233)
at org.springframework.cloud.openfeign.FeignClientsRegistrar.registerFeignClients(FeignClientsRegistrar.java:219)
at org.springframework.cloud.openfeign.FeignClientsRegistrar.registerBeanDefinitions(FeignClientsRegistrar.java:144)
at org.springframework.context.annotation.ImportBeanDefinitionRegistrar.registerBeanDefinitions(ImportBeanDefinitionRegistrar.java:86)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.lambda$loadBeanDefinitionsFromRegistrars$1(ConfigurationClassBeanDefinitionReader.java:384)
at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsFromRegistrars(ConfigurationClassBeanDefinitionReader.java:383)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:148)
at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBea
日志: 16:05:34.439 [main] INFO c.u.j.c.EnableEncryptablePropertiesBeanFactoryPostProcessor 48 - Post-processing PropertySource instances
16:05:34.636 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy
16:05:34.638 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource bootstrap [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:34.638 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource commandLineArgs [org.springframework.core.env.SimpleCommandLinePropertySource] to EncryptableEnumerablePropertySourceWrapper
16:05:34.639 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource systemProperties [org.springframework.core.env.PropertiesPropertySource] to EncryptableMapPropertySourceWrapper
16:05:34.639 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableSystemEnvironmentPropertySourceWrapper
16:05:34.639 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper
16:05:34.639 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:34.640 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource applicationConfig: [file:bootstrap.yml] (document #2) [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:34.640 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource applicationConfig: [file:bootstrap.yml] (document #0) [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:34.806 [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker 335 - Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$f25b9ad1] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
16:05:34.913 [main] INFO c.u.j.f.DefaultLazyPropertyFilter 31 - Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter
16:05:34.929 [main] INFO c.u.j.r.DefaultLazyPropertyResolver 35 - Property Resolver custom Bean not found with name 'encryptablePropertyResolver'. Initializing Default Property Resolver
16:05:34.934 [main] INFO c.u.j.d.DefaultLazyPropertyDetector 35 - Property Detector custom Bean not found with name 'encryptablePropertyDetector'. Initializing Default Property Detector
16:05:35.251 [main] INFO c.u.j.c.EnableEncryptablePropertiesBeanFactoryPostProcessor 48 - Post-processing PropertySource instances
16:05:35.372 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy
16:05:35.374 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource bootstrap [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:35.374 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource commandLineArgs [org.springframework.core.env.SimpleCommandLinePropertySource] to EncryptableEnumerablePropertySourceWrapper
16:05:35.375 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource systemProperties [org.springframework.core.env.PropertiesPropertySource] to EncryptableMapPropertySourceWrapper
16:05:35.375 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableSystemEnvironmentPropertySourceWrapper
16:05:35.375 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper
16:05:35.375 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:35.376 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource applicationConfig: [file:bootstrap.yml] (document #2) [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:35.376 [main] INFO c.u.j.EncryptablePropertySourceConverter 44 - Converting PropertySource applicationConfig: [file:bootstrap.yml] (document #0) [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper
16:05:35.546 [main] INFO o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker 335 - Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$f25b9ad1] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
16:05:35.677 [main] INFO c.u.j.f.DefaultLazyPropertyFilter 31 - Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter
16:05:35.747 [main] INFO c.u.j.r.DefaultLazyPropertyResolver 35 - Property Resolver custom Bean not found with name 'encryptablePropertyResolver'. Initializing Default Property Resolver
16:05:35.752 [main] INFO c.u.j.d.DefaultLazyPropertyDetector 35 - Property Detector custom Bean not found with name 'encryptablePropertyDetector'. Initializing Default Property Detector
. _
/\ / ' () _ \ \ \ \
( ( )__ | ' | '| | ' \/ _` | \ \ \ \
\/ __)| |)| | | | | || (_| | ) ) ) )
' |__| .|| ||| |__, | / / / /
=========|_|==============|__/=////
:: Spring Boot :: (v2.2.7.RELEASE)
. _
/\ / ' () _ \ \ \ \
( ( )__ | ' | '| | ' \/ _` | \ \ \ \
\/ __)| |)| | | | | || (_| | ) ) ) )
' |__| .|| ||| |__, | / / / /
=========|_|==============|__/=////
:: Spring Boot :: (v2.2.7.RELEASE)
16:05:36.843 [main] INFO o.s.c.b.c.PropertySourceBootstrapConfiguration 101 - Located property source: CompositePropertySource {name='servicecomb', propertySources=[ServiceCombConfigPropertySource {name='servicecomb'}]}
16:05:36.850 [main] INFO o.s.boot.SpringApplication 655 - The following profiles are active: huaweicloud
16:05:37.849 [main] INFO o.s.c.b.c.PropertySourceBootstrapConfiguration 101 - Located property source: CompositePropertySource {name='servicecomb', propertySources=[ServiceCombConfigPropertySource {name='servicecomb'}]}
16:05:37.856 [main] INFO o.s.boot.SpringApplication 655 - The following profiles are active: huaweicloud
16:05:39.908 [main] ERROR o.s.boot.SpringApplication 826 - Application run failed
java.lang.IllegalStateException: Service id not legal hostname (${external.dict.serviceName})
16:05:41.160 [main] ERROR o.s.boot.SpringApplication 826 - Application run failed
java.lang.IllegalStateException: Service id not legal hostname (${external.dict.serviceName})
配置截图: bootstrap.yaml
配置中心
依赖:
feign: