
debug
文章平均质量分 54
MissMySwallow
Study well and make progress every day
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
关于使用struts2和spring进行时注解开发报空指针异常的问题的一种解决方案
一.背景: 以登录页面为例,@Controller("loginAction")public class LoginAction extends ActionSupport { private static final long serialVersionUID = 1L; private String username; private String password; @原创 2018-01-23 18:41:44 · 859 阅读 · 0 评论 -
mq和spring结合使用,导致每次启动服务器都会卡在applicationContext-mq.xml那
使用mq后,每次都会停在10:26:18,457 INFO ContextLoader:285 - Root WebApplicationContext: initialization started10:26:18,590 INFO XmlWebApplicationContext:510 - Refreshing Root WebApplicationContext: startup d...原创 2018-03-06 10:33:50 · 939 阅读 · 0 评论 -
quartz和spring结合,报空指针错误:java.lang.NullPointerException
一 使用spring管理quartz,在启动服务器的时候,报错:13:39:09,448 ERROR JobRunShell:211 - Job DEFAULT.promotionJob threw an unhandled Exception: java.lang.NullPointerException at cn.itcast.bos.quartz.PromotionJob.execu...原创 2018-03-03 19:11:30 · 6085 阅读 · 1 评论 -
maven子模块依赖问题:Child module xxx of xxx\pom.xml does not exist
新建了子模块后,如果pom.xml报错,但是pom.xml文件中却没有错误提示,problems中提示缺失各种依赖,并且会报错:Child module xxx of xxx\pom.xml does not exist那么可以在parent中的pom.xml中加入: <modules> <module>bos_utils</module>...原创 2018-03-02 10:06:30 · 11697 阅读 · 1 评论 -
配置spring的时候,application.xml配置文件报错:XML document structures must start and end within the same entity
问题1application.xml报错:Description Resource Path Location Type XML document structures must start and end within the same entity. applicationContext-mq.xml /bos_fore/src/main/resources line 3949 Spring...原创 2018-02-28 21:06:25 · 3151 阅读 · 0 评论 -
使用spring data jap 中的的分页操作没有json数据返回
虽然使用spring-data jpa能够使得持久层的开发简单很多,但是也有很多需要注意的地方,例如进行分页操作的时候...此处没有注意的话....则会查询不到数据,,并且后台显示(且并不会报错...)因为...在PageRequest类中,计算的页码是从0开始的,而前端最小的页面则是1!!!所以,应该改为:(ps:另附大神的一篇文章,介绍关于sprin原创 2018-02-06 19:43:03 · 1229 阅读 · 0 评论 -
使用cxf-rs发布服务启动报错:org.springframework.beans.factory.NoSuchBeanDefinitionException
一.背景 使用cxf+spring发布服务时候,启动服务器报错:严重: StandardWrapper.Throwableorg.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'cxf' is defined at org.springframework.beans.factory.s...原创 2018-02-26 14:40:24 · 348 阅读 · 0 评论 -
sshbug合集(三)
报错:Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException: Error cr原创 2018-02-05 20:39:52 · 190 阅读 · 0 评论 -
ssh的bug合集(二)
此次是收集编写****电子商城网页的时候出现的几种简单的bug,现在进行分享:1. 实例化创建失败,sessionFactory没有配置,注解扫描没有配置或者扫描的路径错误2. 报只读read-only错误,没配置@transactional,如果配置了还是报这个错误,那么可以在dao层响应的操作方法里添加一句话:this.getHibernateTemplate().se原创 2018-01-29 19:16:40 · 295 阅读 · 0 评论 -
ssh几个bug整合集(一)
ssh整合bug 异常:Org.hibernate.lazyinitializationException:could not initialize proxy –no session这是延迟加载的一个问题,主要原因是service层在开启事务后经过Dao的查询的对象是代理的对象且没有实际参数,只有在使用时才会帮我初始化对象。此时事务提交后session被销转载 2018-01-29 19:10:12 · 566 阅读 · 1 评论 -
Windows + nginx+ PHP:报错:Windows + Apache + MySQL + PHP
首先,按照网上的攻略配安装好php,本人采用的是:Windows7搭建Wamp环境中的php环境搭建方法和Windows下的Nginx安装与配置(PHP),然后碰到的问题。。。。。1.环境配置好了后,启动php项目,输入方式为:ip:port/index.php,但是报错:no input file specified此时的解决方法是:删除nginx根目录里的.user.ini文件2...原创 2019-06-17 10:16:45 · 203 阅读 · 0 评论