原来的代码 private static CacheManager cacheManager = SpringContextHolder.getBean("cacheManager"); 修改后 private static EhCacheCacheManager cacheCacheManager = SpringContextHolder.getBean("cacheManager"); private static CacheManager cacheMana…
Springboot整合Elasticsearch报错 今天使用SpringBoot整合Elasticsearch时候,相关的配置完成后,启动项目就报错了. nested exception is java.lang.IllegalStateException: availableProcessors is already set to [4], rejecting [4] 我网上查询了一下,有人是是因为整合了Redis的原因.但是我把Redis相关的配置去掉后,问题还是没有解决,最后有人说是因…
springboot整合activiti时,启动抛异常 nested exception is java.io.FileNotFoundException: class path resource [processes/] cannot be resolved to URL because it does not exist.处理方法 (1)在resource目录下添加processes文件夹,并且文件夹不能为空 (2)在application.properties下增加配置 #启动报错clas…
报错信息: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat at org.springframework.boot.web.servlet.context.Ser…
今天在学springboot整合jsp时遇到了一个问题,虽然jsp不被spring官方推荐使用,但抱着学习的心态还是想解决一下这个问题.在写好了需要pom文件之后,访问网站得到了500的错误提示,后台日志如下: java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.env.INameEnvironment,错误原因很明显,缺少相关的类. 仔细检查发现自己的本地仓库中确实没有这个类,但是Idea也没给出提示,到仓库查…
com.alibaba.dubbo.rpc.RpcException: Failed to invoke remote proxy method queryGoodsLimitPage to registry://39.108.181.187:2181/com.alibaba.dubbo.registry.RegistryService?application=provider&backup=39.108.131.140:2181,39.108.80.181:2181&dubbo=2.5.…
<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.1.0</version> </dependency> <dependency> <groupId>mysql</groupId> <…
Exception in thread "main" org.spark_project.guava.util.concurrent.ExecutionError: java.lang.NoSuchMethodError: org.codehaus.commons.compiler.Location.<init>(Ljava/lang/String;II)V 解决: <exclusions> <exclusion> <groupId>or…
java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zon…
spring+hibernate整合:报错信息如下 org.hibernate.HibernateException: No Session found for current thread at org.springframework.orm.hibernate4.SpringSessionContext.currentSession(SpringSessionContext.java:106) at org.hibernate.internal.SessionFactoryImpl.getC…