
Spring
文章平均质量分 71
shiyuehit
这个作者很懒,什么都没留下…
展开
-
解决IllegalStateException: Failed to load ApplicationContext 方法
刚刚学习Spring框架,遇到java.lang.IllegalStateException: Failed to load ApplicationContext的错误:java.lang.IllegalStateException: Failed to load ApplicationContextat org.springframework.test.context.TestC原创 2016-11-10 19:37:08 · 6004 阅读 · 0 评论 -
Eclipse项目不编译,WEB-INF/classes文件夹中没有文件
选自http://www.uzzf.com/news/21874.htmleclipse下无法自动编译或编译失败等问题解决办法1、确保 project->build automatically 已经被选上. 2、如果选上了,也不好使, 使用这一招: project->clean..->选第2个clean select project, 勾上start build immed原创 2016-11-21 19:28:35 · 12442 阅读 · 4 评论 -
applicationContext.xml 配置文件在web.xml中的配置详解
一、首先写一下代码结构。 二、再看web.xml中的配置情况。xml version="1.0" encoding="UTF-8"?>web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schema转载 2017-04-27 21:36:41 · 943 阅读 · 0 评论 -
TransactionStatus rollbackOnly 的含义
Spring文档中这么说的,意思就是不想抛异常的时候,用这个参数为true作为代替,事务始终会回滚。https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/transaction/TransactionStatus.html...原创 2019-01-23 16:09:33 · 2876 阅读 · 0 评论