![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA WEB
文章平均质量分 71
猪猪海岸
stay busy, learn more.
展开
-
hibernate 4.2.0错误
org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [com.mysql.jdbc.Driver]这是因为缺少了mysql-connector-java-bin.jar原创 2015-08-13 10:34:40 · 245 阅读 · 0 评论 -
SSH架构的自定义filter
打算弄一个自定义的拦截器,在检测到session中的用户 信息为null也就是没登录或者登陆超时的情况下跳转到登陆页面。web.xml配置如下 userLogin com.pwq.util.UserFilter userLogin *.jsp userLogin *.action 拦截下来jsp和action的url。impo原创 2015-08-29 20:01:54 · 439 阅读 · 0 评论 -
springmvc中controller之间的跳转
刚开始学习springmvc,做了一个简单的登录功能之后来到后台@Controller@RequestMapping("/user/controller")public class UserController extends BaseController { @Autowired protected UserService userServi原创 2015-09-14 15:43:30 · 470 阅读 · 0 评论 -
关于ssh 使用批注
在applicationContext.xml中加入下句,扫描@Respository @Service @Controller以登陆login为例说明@Controller("accountsController")public class AccountsController extends BaseAction { //BaseAction 已经继承了 A原创 2015-09-26 14:25:20 · 297 阅读 · 0 评论 -
Spring mvc4使用JSON包变更
spring MVC4以上,使用的json包有变更。使用之前的json包出包java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/JsonProcessingException错误。新用到包为jackson-annotations-2.5.0.jar,jackson-core-2.5.0.jar,jackson-dat转载 2015-09-16 22:09:14 · 280 阅读 · 0 评论 -
取出不是实体成员变量的JSON数据
function getjson() { var jstr = { acaName : "tewtewt", dsada: "ddddddgdfg" }; alert($.toJSON(jstr)); $.ajax( { type : 'POST', contentType :"application/x-www-form-u原创 2015-09-19 19:57:54 · 405 阅读 · 0 评论 -
Struts2通过json前后自动给后台自定义对象赋值
后台的action类中有以下实体,要struts2通过json给他自动赋值private Accounts accounts;public Accounts getAccounts() { return accounts; } public void setAccounts(Accounts accounts) { this.accounts = accounts; }$.a原创 2015-10-25 12:17:11 · 460 阅读 · 0 评论 -
SpringMVC+Hibernate4 导致事务失效不提交的可能原因
原文:http://blog.csdn.net/running_snail_/article/details/88885061.对于用annotation方式的事务注解和bean配置,spring的配置文件 与springMVC的配置文件对包的重复扫描装配会照成失效在主容器中(applicationContext.xml),将Controller的注解排除掉转载 2015-12-10 21:20:33 · 4238 阅读 · 1 评论 -
springmvc4.1+hibernate和jackson2.5的配置
首先是配置spring-servlet.xml(对springmvc配置)<beans xmlns="http://www.springframework.org/schema/beans" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSc原创 2015-12-13 22:34:52 · 1266 阅读 · 0 评论