严重: StandardWrapper.Throwableorg.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: Connections co...
分类:
数据库 时间:
2014-12-27 17:36:41
阅读次数:
324
前篇已经介绍使用SpringMVC的方式进行环境搭建,以及一个简单的demo测试,下面我们再来介绍一下使用注解的方式,如何实现。
添加配置文件
springAnnotation-servlet.xml
-->
web.xml
SpringMVC
org.springframework....
分类:
编程语言 时间:
2014-12-26 23:00:53
阅读次数:
237
使用spring的@DateTimeFormat来格式化Date类型时,报错:org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 error...
分类:
其他好文 时间:
2014-12-26 14:19:22
阅读次数:
597
开发环境
spring-webmvc-4.0.8.RELEASE
Jquery-easyui-1.4.0
以上是在整合layout页面所用的各自版本号。
配置
Spring-mvc.xml配置
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context=...
分类:
编程语言 时间:
2014-12-26 06:14:31
阅读次数:
417
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService' defined in class path resource [applicationContex...
分类:
编程语言 时间:
2014-12-26 06:06:16
阅读次数:
307
我们的项目用的是EasyUI+SpringMVC+EJB+JPA,分享一下项目中遇到的一些问题及其解决方法。前台用的EasyUI,页面中引入了easyUI的js与css(引入路径正确),但是无论如何都显示不出来,如下图:
EasyUI的样式没有,看控制台:警告,找不到
21:26:25,643 WARN [org.springframework.web.servlet.PageNotF...
分类:
编程语言 时间:
2014-12-25 23:46:21
阅读次数:
486
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xmln...
分类:
编程语言 时间:
2014-12-25 16:32:00
阅读次数:
416
在基于Spring MVC的Application中,需要在web.xml中增加下面类似的配置信息:
servlet>
servlet-name>servletNameservlet-name>
servlet-class>
org.springframework.web.servlet.DispatcherServlet
servlet-class>
load-on-...
分类:
编程语言 时间:
2014-12-25 16:24:29
阅读次数:
161
当web.xml文件中如下配置时,spring mvc会无法访问静态资源文件
配置spring
mvc 的核心servlet -->
servlet>
servlet-name>springservlet-name>
servlet-class>org.springframework.web.servlet.Dispatch...
分类:
编程语言 时间:
2014-12-24 22:48:52
阅读次数:
160
[html] view
plaincopy
beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www....
分类:
编程语言 时间:
2014-12-24 18:06:21
阅读次数:
437