#CEP

Springboot实体类转JSON报错Could not find acceptable representation & 设置访问项目根路径的默认欢迎页面

  之前在springmvc的时候也报过这个错,原因以及springmvc中解决办法参考:https://www.cnblogs.com/qlqwjy/p/8722802.html  今天在springboot中同样遇到这个错。错误分析:后台返回的数据格式是json的时候,格式化实体类报错,如下:@RequestMap...

mybatis-plus调用自身的 selectById 方法报错:org.apache.ibatis.binding.BindingException:

  mybatis-plus的版本号是 2.0.1,在调用自身的insert(T)的时候没有报错,但是执行update报错,调用selectById、deleteById的时候也报错。也就是涉及到需要主键识别的都报错。语句如下:(接口与实现都是MP自己实现的)UserselectById=userMapper...

【CXF】com.sun.xml.internal.ws.fault.ServerSOAPFaultException: Client received SOAP Faul

    在客户端生成代码之后测试出现错误:    com.sun.xml.internal.ws.fault.ServerSOAPFaultException:ClientreceivedSOAPFaul 我们需要了解在客户端生成代码之后不需要引入任何的CXF的包,报上面的错误一般是调用webService接...

spring整合ehcache2.5.2缓存异常-- net.sf.ehcache.CacheException

报错如下:ThesourceoftheexistingCacheManageris:DefaultConfigurationSource[ehcache.xmlorehcache-failsafe.xml]atorg.springframework.beans.factory.support.AbstractAutow...

【SSH异常】InvalidDataAccessApiUsageException异常

  今天在整合SSH的时候,一开始我再测试的时候service层添加了注解事务调用DAO可以正常的保存,在环境中我在XML中采用了spring的OpenSessionInViewFilter解决hibernate的no-session问题(防止页面采用蓝懒加载的对象,此过滤器在访问请求前打开session,访问结束关闭...

org.springframework.dao.EmptyResultDataAccessException

   今天在做定时任务获取数据的时候遇到下面的错误:org.springframework.dao.EmptyResultDataAccessException:Incorrectresultsize:expected1,actual0atorg.springframework.dao.support.Dat...

org.hibernate.TransientObjectException异常

  代码如下:/***测试4:新增一个秘书角色,并赋给张三该角色*/@Testpublicvoidtest4(){Sessionsession=HibernateUtils.openSession();Transactiontx=session.beginTransaction();/******S开始业务逻辑****...

nested exception is com.svorx.core.dao.PersistenceException

    在quartz定时执行任务的时候,hibernate报错,在只读事务中进行了update语句:[ERROR]2018/08/0310:35:00,827org.quartz.core.JobRunShell-JobDEFAULT.fetchDingGroupDatasTaskthrewanunhandledEx...

使用maven打包项目遇到错误: http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

 今天在使用maven打包项目时遇到一个错误: [ERROR]Failedtoexecutegoalorg.apache.maven.plugins:maven-compiler-plugin:2.4:compile(default-compile)onprojectzjydpt:Fatalerro...

jsoup抓取网页报错UnsupportedMimeTypeException

   今天在用Jsoup爬虫的时候两次遇到下面错误Exceptioninthread"main"org.jsoup.UnsupportedMimeTypeException:Unhandledcontenttype.Mustbetext/*,application/xml,orapplication/xhtm...

Java的Exception和Error面试题10问10答

在Java核心知识的面试中,你总能碰到关于处理Exception和Error的面试题。Exception处理是Java应用开发中一个非常重要的方面,也是编写强健而稳定的Java程序的关键,这自然使它成为面试题中的常客。关于Java中Error和Exception的面试题目多是关于Exception和Error的概念,如...
代码星球 代码星球·2020-08-27

【small项目】MySQL第二天早上第一次连接超时报错,解决方法com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:

MySQL第二天早上第一次连接超时报错,解决方法com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:Communicationslinkfailurecom.mysql.jdbc.exceptions.jdbc4.CommunicationsException...

nginx-404与fastcgi_intercept_errors指令

nginx-404与fastcgi_intercept_errors指令  fastcgi_intercept_errors语法:fastcgi_intercept_errorson|off 默认值:fastcgi_intercept_errorsoff 使用字段:http,se...

python中的 try...except...finally 的用法

author:headsenchen date:2018-04-09 16:22:11try,except,finally是Python中的异常捕捉机制,通常的用法就是try..except...结合起来用,程序捕捉try语句块中的异常,如果发现异常就把异常交给except中的语句块进行处理,也就是...

org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode

[spring]:org.springframework.dao.InvalidDataAccessApiUsageException:Writeoperationsarenotallowedinread-onlymodeorg.springframework.dao.InvalidDataAccessApiUsage...
首页上一页...2021222324...下一页尾页