主题 : jeecmsX1.5.1源码IDEA启动出错 |
级别: 总版主
![]() |
31# 发表于:2020-10-23 14:38:25 IP:115.233.*.*
|
||||
---|---|---|---|---|---|
级别: 秀才
![]() |
32# 发表于:2020-10-23 14:45:26 IP:221.82.*.*
但是我现在启动CmsFrontApplication后进入不了后台,提示 2020-10-23 14:42:24.829 [http-nio-8080-exec-34] ERROR c.j.front.controller.ExceptionHandlerController - No message availableRequested path /jeecms/index.html with result No message available 我要单独启动CmsAdminApplication吗?启动后有这个错误 . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.0.9.RELEASE) 2020-10-23 14:44:22.498 INFO 44797 --- [ main] com.jeecms.admin.CmsAdminApplication : Starting CmsAdminApplication on sengledeMacBook.local with PID 44797 (/Users/sengle/Downloads/JeeCMSX/JEECMSx1.5.1_mysql_src/jeecms-parent/jeecms-admin/target/classes started by sengle in /Users/sengle/works/apache-maven-3.6.3) 2020-10-23 14:44:22*0 INFO 44797 --- [ main] com.jeecms.admin.CmsAdminApplication : No active profile set, falling back to default profiles: default 2020-10-23 14:44:22.811 INFO 44797 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@6304101a: startup date [Fri Oct 23 14:44:22 CST 2020]; root of context hierarchy 2020-10-23 14:44:23.086 WARN 44797 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.jeecms.admin.CmsAdminApplication]; nested exception is java.io.FileNotFoundException: class path resource [config/spring.jpa.properties] cannot be opened because it does not exist 2020-10-23 14:44:23.901 ERROR 44797 --- [ main] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.jeecms.admin.CmsAdminApplication]; nested exception is java.io.FileNotFoundException: class path resource [config/spring.jpa.properties] cannot be opened because it does not exist at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:184) ~[spring-context-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:316) ~[spring-context-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:233) ~[spring-context-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:271) ~[spring-context-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:91) ~[spring-context-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706) ~[spring-context-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:533) ~[spring-context-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[spring-boot-2.0.9.RELEASE.jar:2.0.9.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) ~[spring-boot-2.0.9.RELEASE.jar:2.0.9.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386) ~[spring-boot-2.0.9.RELEASE.jar:2.0.9.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) ~[spring-boot-2.0.9.RELEASE.jar:2.0.9.RELEASE] at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:137) [spring-boot-2.0.9.RELEASE.jar:2.0.9.RELEASE] at com.jeecms.admin.CmsAdminApplication.main(CmsAdminApplication.java:59) [classes/:na] Caused by: java.io.FileNotFoundException: class path resource [config/spring.jpa.properties] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:180) ~[spring-core-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.core.io.support.EncodedResource.getInputStream(EncodedResource.java:159) ~[spring-core-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:99) ~[spring-core-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties(PropertiesLoaderUtils.java:73) ~[spring-core-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.core.io.support.PropertiesLoaderUtils.loadProperties(PropertiesLoaderUtils.java:59) ~[spring-core-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.core.io.support.ResourcePropertySource.<init>(ResourcePropertySource.java:67) ~[spring-core-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.core.io.support.DefaultPropertySourceFactory.createPropertySource(DefaultPropertySourceFactory.java:37) ~[spring-core-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.processPropertySource(ConfigurationClassParser.java:453) ~[spring-context-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:272) ~[spring-context-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245) ~[spring-context-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:202) ~[spring-context-5.0.13.RELEASE.jar:5.0.13.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:170) ~[spring-context-5.0.13.RELEASE.jar:5.0.13.RELEASE] ... 12 common frames omitted Disconnected from the target VM, address: '127.0.0.1:52903', transport: 'socket' Process finished with exit code 1 |
||
---|---|---|---|
级别: 总版主
![]() |
33# 发表于:2020-10-23 14:57:54 IP:115.233.*.*
最好在windwos环境下,你这个MAC下可能有兼容问题,还有你idea插件
|
||
---|---|---|---|
级别: 秀才
![]() |
34# 发表于:2020-10-23 16:55:31 IP:221.82.*.*
能有办法吗?我们都是mac环境。其他项目mac都没有问题,看错误提示是因为CmsFrontApplication里面的config/spring.jpa.properties 在 CmsAdminApplication里面找不到cannot be opened because it does not exist |
||
---|---|---|---|
级别: 秀才
![]() |
36# 发表于:2020-10-23 17:26:12 IP:221.82.*.*
IDEA 2020.2 版本。 刚才我看jeecms-common 的pom文件里面 <dependency> <groupId>com.jeecms</groupId> <artifactId>jeecms-core</artifactId> <version>v1.3.4.84t</version> </dependency> 这个依赖找不到 |
||
---|---|---|---|
级别: 总版主
![]() |
37# 发表于:2020-10-23 17:36:17 IP:115.233.*.*
这个依赖在本地 在common包里面,您那边上面的错误应该还是idea配置问题 |
||
---|---|---|---|