普通JavaWeb项目调整为gradle项目结构
1、选中项目--configure-convert to Gradle project
2、按gradle项目标准调整代码路径
3、新增gradle配置文件
4、gradle-refresh dependencies
并且在启动项目时有报错如下:
关键字:org.apache.commons.collections.CollectionUtils.isEmpty(Ljava/util/Collection;)Z
原因:commons.collections-3.1.jar包缺失方法。
解决办法:升级为commons.collections-3.2.2.jar
验证通过
三月 30, 2020 8:42:46 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class com.framework.web.mvc.core.SpringContextListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redis.operation.ctgRedisClient' defined in class path resource [redis-config/redis.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.red