码迷,mamicode.com
首页 >  
搜索关键字:saving beans    ( 2930个结果
spring-使用配置文件完成JdbcTemplate操作数据库
一、创建spring项目项目名称:spring101302二、在项目上添加jar包1.在项目中创建lib目录/lib2.在lib目录下添加spring支持commons-logging.jarjunit-4.10.jarlog4j.jarmysql-connector-java-5.1.18-bin.jarspring-beans-3.2.0.RELEASE.jarspring-context-3.2.0.RELEASE.jarsprin..
分类:数据库   时间:2014-10-13 18:55:30    阅读次数:169
spring-使用配置文件完成JdbcTemplate操作数据库-dbcp
一、创建spring项目项目名称:spring101302二、在项目上添加jar包1.在项目中创建lib目录/lib2.在lib目录下添加spring支持commons-logging.jarjunit-4.10.jarlog4j.jarmysql-connector-java-5.1.18-bin.jarspring-beans-3.2.0.RELEASE.jarspring-context-3.2.0.RELEASE.jarsprin..
分类:数据库   时间:2014-10-13 18:38:40    阅读次数:227
spring-使用配置文件完成JdbcTemplate操作数据库-c3p0
一、创建spring项目项目名称:spring101302二、在项目上添加jar包1.在项目中创建lib目录/lib2.在lib目录下添加spring支持commons-logging.jarjunit-4.10.jarlog4j.jarmysql-connector-java-5.1.18-bin.jarspring-beans-3.2.0.RELEASE.jarspring-context-3.2.0.RELEASE.jarsprin..
分类:数据库   时间:2014-10-13 17:15:10    阅读次数:192
spring中构造函数注入
spring中构造函数注入,简单来说,就是通过beans.xml中,设置相应的值,并且通过bean类中的构造函数进行注入这些值。 文件结构 Goods类 package com.test.innerbean; public class Goods { private String goodsName; private int price; public Goods(Str...
分类:编程语言   时间:2014-10-13 13:54:20    阅读次数:265
Spring学习之使用标签来标记资源(@Component、@Repository、 @Service和@Controller)以及使用方式(包含如何在jsp中使用)
首先要在xml文件当中加入标下划线的部分,容器初始化时候需要扫描的包  注意: a.     扫描的包部分(下划线部分)一定要加上,默认是不会扫描所有的包的。各个包之间用’,’隔开。如过具有相同的父包,那么我们可以用父包来代替。如下划线部分,我们可以用com.bjsxt来代替。 <beans xmlns="http://www.springframework.org/schema/bean...
分类:编程语言   时间:2014-10-13 12:58:39    阅读次数:329
使用json-lib进行Java和JSON之间的转换【转载】
1. json-lib是一个java类库,提供将Java对象,包括beans, maps, collections, java arrays and XML等转换成JSON,或者反向转换的功能。2. json-lib 主页 :http://json-lib.sourceforge.net/3.执行环...
分类:编程语言   时间:2014-10-13 12:18:19    阅读次数:197
spring 注入之 xml
一  使用xml注入 xml中进行配置   重点说明:bean name 具有唯一性 xml version="1.0"encoding="UTF-8"?> beans xmlns="http://www.springframework.org/schema/beans"        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan...
分类:编程语言   时间:2014-10-12 23:03:08    阅读次数:358
spring注入之使用标签 @Autowired @Qualifier
(1)Xml配置(添加了加下划线部分) <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schem...
分类:编程语言   时间:2014-10-12 22:12:58    阅读次数:297
javaweb报错总结
1、org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'sqlMapClient'definedinclasspathresource[dao/spring-config-dao.xml]...
分类:编程语言   时间:2014-10-11 16:09:36    阅读次数:256
Difference between applicationContext.xml and spri
Spring lets you define multiple contexts in a parent-child hierarchy. The?applicationContext.xml?defines the beans for the "root webapp context", i.e. the context associated with the webapp. The...
分类:移动开发   时间:2014-10-11 13:45:55    阅读次数:205
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!