主题 : jeecms idea启动报错
级别: 童生
UID: 120099
积分:30 加为好友
威望: 0 精华: 0
主题:3 回复:12
注册时间:2018-01-21
在线时长:0
1#   发表于:2020-03-22 21:14:48  IP:117.5.*.*
目前遇到3个问题:
1.Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
通过在CmsFrontApplication上加了注解@SpringBootApplication解决

2.Annotation-specified bean name 'userCollectionController' for bean class [com.jeecms.member.controller.UserCollectionController] conflicts with existing, non-compatible bean definition of same name and class [com.jeecms.front.controller.UserCollectionController]
通过将com.jeecms.member.controller.UserCollectionController修改名称解决

3.Error creating bean with name 'methodValidationPostProcessor' defined in class path resource [com/jeecms/front/config/MemberConfig.class]: Invocation of init method failed; nested exception is javax.validation.ValidationException: HV000183: Unable to initialize 'javax.el.ExpressionFactory'. Check that you have the EL dependencies on the classpath, or use ParameterMessageInterpolator instead
不知道怎么解决


请问这3个问题,前2个这样解决是否可以,第3个问题该怎么解决
级别: 童生
UID: 120099
积分:30 加为好友
威望: 0 精华: 0
主题:3 回复:12
注册时间:2018-01-21
在线时长:0
2#   发表于:2020-03-22 21:25:15  IP:117.5.*.*
第3个问题通过将spring-boot-starter-tomcat的<scope>provided</scope>注掉解决了
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<!--<scope>provided</scope>-->
</dependency>

但是出现了第4个问题,项目启动后,访问页面localhost:8080,报freemarker.template.TemplateNotFoundException: Template not found for name "/WEB-INF/t/cms/www/default/index/index.html".
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
3#   发表于:2020-03-23 09:05:42  IP:182.236.*.*
您这个是没有配置项目的内嵌tomcat导致的   您可以看下我们的部署介绍  里面有在启动项目前还有一个步骤是可以解决这个问题的
每天告诉自己一次,“我真的很不错”。
1 共1页