日志:
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
配置截图: bootstrap.yaml
![image](https://private-user-images.githubusercontent.com/44899524/293192260-02f9c203-cffa-4453-b81b-460353c067de.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MjIwMzIsIm5iZiI6MTcxOTkyMTczMiwicGF0aCI6Ii80NDg5OTUyNC8yOTMxOTIyNjAtMDJmOWMyMDMtY2ZmYS00NDUzLWI4MWItNDYwMzUzYzA2N2RlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAyVDEyMDIxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFmMWJlOGY1NDAyMTNhOWEyMzA5MzkxZmNmMTgwMmM5MmZiZjM3ZThhZTE4YmNjZWUwNTM5MzM3NTQ4ZGIzYWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.KntEaCwnV_c8ABBEYN60K3SMqYcQeQ-dB9BrdmqSfBY)
配置中心
![image](https://private-user-images.githubusercontent.com/44899524/293192580-3c5341c1-8a6e-4134-bf82-092f9c51a9e7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MjIwMzIsIm5iZiI6MTcxOTkyMTczMiwicGF0aCI6Ii80NDg5OTUyNC8yOTMxOTI1ODAtM2M1MzQxYzEtOGE2ZS00MTM0LWJmODItMDkyZjljNTFhOWU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAyVDEyMDIxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkwMTk3OTU3Yjc0YzBiZDE1MjIwNGE5MGYwMGY0M2EwMjlkNTczYmY4Mzc5MTA3NzU5NjFmY2VkYTJlZmU1YTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.N3_8S2g1IRsJY4qY1LYo4zUgDdN2C6LVga2Gu08ckbU)
依赖:
![image](https://private-user-images.githubusercontent.com/44899524/293192857-d412d4df-5bb0-46e2-aec6-c359a58c45e0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MjIwMzIsIm5iZiI6MTcxOTkyMTczMiwicGF0aCI6Ii80NDg5OTUyNC8yOTMxOTI4NTctZDQxMmQ0ZGYtNWJiMC00NmUyLWFlYzYtYzM1OWE1OGM0NWUwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAyVDEyMDIxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc3YzE5ZjBmMTM2YjE0Y2ZjM2U0MDc0NzQ3MWYyYmRhNDEwOTRmNGNmYWMxNWUyZTg2YmMwNGJjZDFkMWJiMzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.oN-_lubWFL1XZKICZHEOWu4fEElZtEdOgncge7w_kOo)
feign:
![image](https://private-user-images.githubusercontent.com/44899524/293192948-ca226e1a-2f6d-4898-b0cd-f7e5160b35ae.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5MjIwMzIsIm5iZiI6MTcxOTkyMTczMiwicGF0aCI6Ii80NDg5OTUyNC8yOTMxOTI5NDgtY2EyMjZlMWEtMmY2ZC00ODk4LWIwY2QtZjdlNTE2MGIzNWFlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAyVDEyMDIxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdjZDFhNzIzZGI4M2ZhNmI2MjMzYzNhMDZiMTRhZWJlM2JhOGU3OTY3MWMzYzA2NTZkYzdmMTkyYzBkODNjMWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.aW4S8WGzsioNvr0gidGmnFtJaReRUpfY7x56I-3Jq9U)