#CEP

SpringBoot配置文件yml ScannerException: while scanning an alias *

在使用yml编写配置我呢见management:endpoints:web:base-path:/actuatorjmx:exposure:include:*     给*加上'' 变为'*'management:endpoints:web:base-path:/actuator...

Caused by: org.springframework.data.mapping.PropertyReferenceException: No property id found for type Users!

SpringDataJPA自定义RepositoryCausedby:org.springframework.data.mapping.PropertyReferenceException:NopropertyidfoundfortypeUsers! 排错方案:1.  比我这个名字就不一致了,导致它解析不到实...

jackson json转实体对象 com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException

说明:出现这种问题的情况是由于JSON里面包含了实体没有的字段导致反序列化失败。 版本:2.8.2(几乎通用)2种解决方法1:实体类上面添加注解@JsonIgnoreProperties(ignoreUnknown=true)@JsonIgnoreProperties(ignoreUnknown=true)p...

Solr java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect to this MySQL server

在用solr从mysql导入数据的时候,因为linux和本机的数据库不在同一个ip段上,又因为本地的mysql没有设置远程其它ip可以访问所以就报了如下错误  解决办法:在mysql任意可以输入查询命令的窗口下执行。usemysql;selectuser,hostfromuser;updateuse...

java.lang.ClassNotFoundException: XXX (no security manager: RMI class loader disabled)

在搞RMI远程发布,consumer去获取rmi远程服务的代理对象的时候出现了如下的错误   问题发现:由于我发布的对象的包路径和获取的对象的包路径不一致,导致了这样的问题  解决方案: ...

Spring MVC HTTP406 Not Acceptable

今天在搞前后端分离用springmvc传递json数据的时候,第一步就卡主了,本着完事开头难的做法(哈哈哈),报了个406?什么鬼?  百度之后发现很多人也同我一样遇到过这个问题,记录下。 找到的处理方案有:1、没有启用注解标签在配置文件中<mvc:annotation-driven...

Nginx配置Tomcat8反向代理出现 java.lang.IllegalArgumentException: The character [_] is never valid in a domain name.

java.lang.IllegalArgumentException:Thecharacter[_]isnevervalidinadomainname.  原因是在nginx配置文件中配置upstream时用了“_”字符!!  我们只需要把 &r...

Spring整合Mybaits java.sql.SQLException: Access denied for user '***'@'localhost' (using password: YES)

最近在搞Spring和Mybatis的整合,当我们在Spring里面配置数据源,而数据源是从外部的properties文件读取过来的时候就会报错java.sql.SQLException:Accessdeniedforuser'Rebirth'@'localhost'(usingpassword:YES)db.prop...

Web API使用HttpResponseMessage与HttpResponseException的差异 HttpResponseMessage 返回类型

在WebAPI中提供了HttpResponseMessage与HttpResponseException用于处理返回讯息,HttpResponseMessage用于返回一个来自于客户端的请求结果讯息,你可以使用HttpResponseMessage自订返回的内容,HttpResponseException则是以当发生例...

java.security.InvalidKeyException: Illegal key size aes解密失败

使用微信时定期提示:java.security.InvalidKeyException:Illegalkeysize和com.qq.weixin.mp.aes.AesException:aes解密失败   atcom.qq.weixin.mp.aes.WXBizMsgCrypt.decry...

java 解压zip java.lang.IllegalArgumentException: MALFORMED 错误

ava.lang.IllegalArgumentException:MALFORMEDatjava.util.zip.ZipCoder.toString(UnknownSource)atjava.util.zip.ZipInputStream.readLOC(UnknownSource)atjava.util.zip....

java.io.IOException: Attempted read from closed stream解决

原因是EntityUtils.toString(HttpEntity)方法被使用了多次。所以每个方法内只能使用一次。...

javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure 解决方案

这个是jdk导致的,jdk里面有一个jce的包,安全性机制导致的访问https会报错,官网上有替代的jar包,换掉就好了目录%JAVA_HOME%jrelibsecurity里的local_policy.jar,US_export_policy.jarJDK7http://www.oracle.com/technetw...

Java Scoket之java.io.EOFException解决方案

Socket接收数据的时候,常常会抛出java.io.EOFException异常,也没有明确的原因和提示,在网上搜搜,很多人都在问此问题,但是没有找到切实可行的办法。经过研究,问题解决了。 看到的异常堆栈信息如下: java.io.EOFException  atjava.io...

解决org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource

spring中做成bean,可以使用property"resourceLoaderPath"指定工程中的路径<beanid="velocityEngine"class="org.springframework.ui.velocity.VelocityEngineFactoryBean"><proper...
首页上一页...2930313233...下一页尾页