- 博客(3)
- 资源 (1)
- 收藏
- 关注
转载 Could not obtain transaction-synchronized Session for current thread问题及解决
在使用SpringBoot时遇到以下异常: org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread at org.springframework.orm.hibernate4.SpringSessionContext.currentSess...
2018-11-08 15:03:27
833
原创 ajax方法获取到数据成功返回却进入了error
jQuery中ajax方法通过后台控制层已获取到数据,但是没有正常进入sucess回调函数,而是进入了error函数。 原因:dataType错误(dataType用来指定后台返回参数的类型),控制层返回的是String类型,但ajax中写的是dataType=“JSON”; 可以将控制层中的数据类型改为JSONArray,或修改dataType="text"。 ...
2018-11-08 14:49:02
1422
原创 前端页面报错:TypeError: $.widget is not a function
在Java项目中,正常启动无报错。但是打开对应页面,出现报错:TypeError: $.widget is not a function。 解决方式:下载jquery-ui.min.js文件,并添加到对应的jsp/html中。如下所示: <script type="text/javascript" src="js路径/jquery-ui.min.js"></script>...
2018-11-07 14:25:35
5170
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人