随笔分类 -  Spring

上一页 1 2 3 4 5 下一页
出现"Unable to instantiate Action,xxxxx, defined for 'login' in namespace '/' xxxxx 解决办法
摘要:转自:https://blog.csdn.net/heroful/article/details/17261169 问题原因: 在MyEclipse 利用SSH框架写程序,运行时出现 " Unable to instantiate Action,xxxxx, defined for 'login' 阅读全文
posted @ 2017-08-14 05:09 Sharpest
Spring中配置数据源的4种形式
摘要:转自:https://blog.csdn.net/qqqqqq654/article/details/52462203 不管采用何种持久化技术,都需要定义数据源。Spring中提供了4种不同形式的数据源配置方式: spring自带的数据源(DriverManagerDataSource),DBCP数 阅读全文
posted @ 2017-08-06 15:57 Sharpest
org.dom4j.DocumentException: null Nested exception: null解决方法
摘要:由于最近在学习使用spring架构,经常会遇到与xml文档打交道,今天遇到了此问题,特来分享一下解决方案。 出错原因: 很明显是因为找不到文件路径。这个原因是因为我使用了*.clas.getResourceAsStream(xmlFilePath)来进行xml文档的路径提供。使用这个方法时,对xml 阅读全文
posted @ 2017-01-06 13:18 Sharpest
spring加载hibernate映射文件的几种方式
摘要:1. 在Spring的applicationContext.xml中配置映射文件,通常是在<sessionFactory>这个Bean实例中进行的,若配置的映射文件较少时,可以用sessionFactory的所属类LocalSessionFactoryBean的“mappingResources”属 阅读全文
posted @ 2016-12-25 23:07 Sharpest
Spring 依赖注入方式详解
摘要:转自:https://blog.csdn.net/d124939312/article/details/79021952 阅读目录 1.Set注入 2.构造器注入 3.静态工厂的方法注入 4.实例工厂的方法注入 平常的Java开发中,程序员在某个类中需要依赖其它类的方法。 通常是new一个依赖类再调 阅读全文
posted @ 2016-12-21 23:26 Sharpest
The type org.springframework.core.io.support.ResourcePatternResolver cannot be resolved. It is ind
摘要:转自:https://blog.csdn.net/evilcry2012/article/details/49208909 缺包 spring-core-.RELEASE.jar 阅读全文
posted @ 2016-12-19 00:25 Sharpest
java.lang.NoClassDefFoundError: org/springframework/dao/support/DaoSupport
摘要:转自:https://blog.csdn.net/lzx159951/article/details/79753493 1. 缺少:org.springframework.transaction-3.0.5.RELEASE.jar Maven依赖配置 <dependency> <groupId>or 阅读全文
posted @ 2016-12-19 00:21 Sharpest
Spring整合JUnit4测试时,使用注解引入多个配置文件
摘要:转自:https://blog.csdn.net/pwh309315228/article/details/62226372 一般情况下: [html] view plain copy @ContextConfiguration(Locations="../applicationContext.xm 阅读全文
posted @ 2016-12-06 23:58 Sharpest
Spring 使用注解方式进行事务管理
摘要:转自:http://www.cnblogs.com/younggun/p/3193800.html 使用步骤: 步骤一、在spring配置文件中引入<tx:>命名空间 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:x 阅读全文
posted @ 2016-12-06 23:27 Sharpest
深入Spring:自定义注解加载和使用
摘要:转自:https://blog.csdn.net/z69183787/article/details/53784845 前言 在工作中经常使用Spring的相关框架,免不了去看一下Spring的实现方法,了解一下Spring内部的处理逻辑。特别是开发Web应用时,我们会频繁的定义*@Controll 阅读全文
posted @ 2016-11-15 10:06 Sharpest
全面分析 Spring 的编程式事务管理及声明式事务管理
摘要:转自:https://www.ibm.com/developerworks/cn/education/opensource/os-cn-spring-trans/ 关于本教程 本教程将深切讲授 Spring 庞杂而丁壮夜的事务治理功用,包括编程式事务和声明式事务。经由进程对本教程的进修,您将可以理解 阅读全文
posted @ 2016-11-04 00:46 Sharpest
class path resource [applicationContext.xml] cannot be opened because it does not exis
摘要:使用maven创建web工程,将spring配置文件applicationContext.xml放在src/resource下,用eclipse编译时提示class path resource [applicationContext.xml] cannot be opened because it 阅读全文
posted @ 2016-10-28 23:28 Sharpest
关于Spring 国际化 No message found under code 的解决方案
摘要:转自:https://www.cnblogs.com/Jacob186/p/6254423.html 用spring做国际化时经常会报: org.springframework.context.NoSuchMessageException: No message found under code ' 阅读全文
posted @ 2016-10-21 19:27 Sharpest
Spring配置hibernate读取实体类映射mappingResources,annotatedClasses,packagesToScan
摘要:转自:https://blog.csdn.net/chendc201/article/details/16886545 这两个是有本质区别的,光看名字也能看出来 mappingResources用于指定少量的hibernate配置文件像这样 Xml代码 <property name="mapping 阅读全文
posted @ 2016-09-09 16:29 Sharpest
lineNumber: 8; columnNumber: 128; cvc-elt.1: 找不到元素 'beans' 的声明
摘要:转自:https://blog.csdn.net/java_yejun/article/details/51036638 spring和mybatis整合时出现了lineNumber: 8; columnNumber: 128; cvc-elt.1: 找不到元素 'beans' 的声明异常。 在网上 阅读全文
posted @ 2016-09-09 14:44 Sharpest
Spring配置文件中<bean>标签的scope属性
摘要:转自:https://fj-sh-chz.iteye.com/blog/1775149 singleton (默认属性) Spring将Bean放入Spring IOC容器的缓存池中,并将Bean引用返回给调用者,spring IOC继续对这些Bean进行后续的生命管理。BeanFactory只管理 阅读全文
posted @ 2016-07-28 23:10 Sharpest
applicationContext.xml中的使用${}是代表什么意思?
摘要:转自:https://www.cnblogs.com/JamKong/p/4523321.html 在applicationContext.xml文件中,使用 ${xxx} 表示的是:调用某个变量,该变量的名称就是{xxx}里面的"xxx"。 例如:在applicationContext.xml文件 阅读全文
posted @ 2016-07-14 15:03 Sharpest
避免IE在ajax请求时,返回json出现下载
摘要:转自:https://blog.csdn.net/z521q1314/article/details/54409048 阅读全文
posted @ 2016-07-06 13:55 Sharpest
Spring Test 整合 JUnit 4 使用总结
摘要:转自:https://blog.csdn.net/hgffhh/article/details/83712924 这两天做Web开发,发现通过spring进行对象管理之后,做测试变得复杂了。因为所有的Bean都需要在applicationContext.xml中加载好,之后再通过@Resource去 阅读全文
posted @ 2016-06-29 14:57 Sharpest

上一页 1 2 3 4 5 下一页