如果我尝试在pom.xml文件中添加activiti-spring-boot-starter-rest-api依赖项,则由于我已经具有grpc-spring-boot-starter依赖项,因此Spring Boot应用程序无法启动。我想知道是否可以通过拥有这两个依赖关系来使我的应用程序正常工作。
我有application.properties文件 grpc.port = 8000 我想让rest-api在其他端口上侦听,如果它有助于解决我的解决方案。我想知道属性名称
我对pom.xml文件的依赖 grpc-spring-boot-starter,activiti-spring-boot-starter-rest-api
如果我从pom.xml中删除activiti-spring-boot-starter-rest-api依赖关系,则一切正常。如果我同时具有以上两个依赖性,则我的Spring Boot应用程序无法启动
错误: {“ timestamp”:“ 2019-07-25T16:09:26.637 + 05”,“ level”:“ INFO”,“ thread”:“ main”,“ logger”:“ com.workflow.Application”,“ message” :“在管理员Latitude-5590上使用PID 21501启动应用程序(/ home / workflow / target /由Xhome在/ home / workflow中启动的类)”,“上下文”:“默认”}
{“ timestamp”:“ 2019-07-25T16:09:26.663 + 05”,“ level”:“ INFO”,“ thread”:“ main”,“ logger”:“ xxxxxxx.XXXXX.Application”, “ message”:“以下配置文件处于活动状态:dev”,“ context”:“默认”}
{“ timestamp”:“ 2019-07-25T16:09:28.205 + 05”,“ level”:“ ERROR”,“ thread”:“ main”,“ logger”:“ org.springframework。 boot.SpringApplication“,”消息“:”应用程序运行失败“,”上下文“:”默认“,”异常“:” org.springframework.beans.factory.BeanDefinitionStoreException:无法处理配置类[XXXXXXX.Application]的导入候选对象];嵌套异常为java.io.FileNotFoundException:类路径资源[org / springframework / security / config / annotation / authentication / configurers / GlobalAuthenticationConfigurerAdapter.class]无法打开,因为它不存在\ n \ t org.springframework.context .annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:648)\ n \ tat org.springframework.context.annotation.ConfigurationClassParser.lambda $ processDeferredImportSelectors $ 2(ConfigurationClassParser.java:567)\ n \ tat java.util.ArrayList.forEach( ArrayList.java:1257)\n\t org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportS选民(ConfigurationClassParser.java:563)\n\tat org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:188)\ n \ tat org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java: 316)\ n \ t org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:233)\ n \ tat org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.javaat:273)\ org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:93)\ n \ tat org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694)\ n \ tat org.springframework.context.support support.AbstractApplicationContext.refresh(AbstractApplica tionContext.java:532)\n\tat org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)\ n \ tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java: 759)\ n \ t org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)\ n \ tat org.springframework.boot.SpringApplication.run(SpringApplication.java:327)\ n \ tat org.springframework。 boot.SpringApplication.run(SpringApplication.java:1255)\ n \ tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)\ n \ tat XXXXXXX.Application.main(Application.java:19)\ n原因:java.io.FileNotFoundException:类路径资源[org / springframework / security / config / annotation / authentication / configurers / GlobalAuthenticationConfigurerAdapter.class]无法打开,因为它确实不存在\ n \ t org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:180)\ n \ t org.springframework.core.type.classreading.SimpleMetadataReader。(SimpleMetadataReader.java:51)\ n \ tat org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103)\ n \ tat org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.createMetadataReader(ConcurrentReorgCachingMatdataReaderFactory) .springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.getMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:75)\ n \ t org.springframework.core.type.classreading.Sim pleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:81)\ n \ tat org.springframework.context.annotation.ConfigurationClassParser.asSourceClass(ConfigurationClassParser.java:734)\ n \ tat org.springframework.context.annotation.ConfigurationClassParser $ SourceClass.getSuperClass( ConfigurationClassParser.java:950)\n\t org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:333)\ n \ t org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245) \ n \ tat org.springframework.context.annotation.ConfigurationClassParser.processMemberClasses(ConfigurationClassParser.java:362)\ n \ tat org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:265)\ n \ tat org。 springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245)\ n \ tat org.spring framework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:638)\ n \ t ...省略了17个常见框架\ n“}