码迷,mamicode.com
首页 >  
搜索关键字:beans    ( 2634个结果
使用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-06-16 08:53:53    阅读次数:204
java实现Spring在XML配置java类
java实现Spring在XML配置java类 1.创建自己的bean文件:beans.xml test com.cxm.test.SysHelloImpl 2,提供解析xml类:XmlUtils /** * */ package com.cxm.xmlutil; import java.io.InputS...
分类:编程语言   时间:2014-06-07 16:20:38    阅读次数:314
spring FactoryBean配置Bean
概要: 实例代码详解: 目录结构 Car.java package com.coslay.beans.factorybean; public class Car { private String brand; private double price; public String getBrand() { return brand; } ...
分类:编程语言   时间:2014-06-07 13:54:02    阅读次数:252
基于注解的struts2+spring+hibernate集成
applicationContext.xml<?xmlversion="1.0"encoding="UTF-8"?> <beansxmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http:..
分类:编程语言   时间:2014-06-04 12:51:48    阅读次数:476
SpringMVC Service配置文件讲解
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www...
分类:编程语言   时间:2014-06-01 14:14:30    阅读次数:320
12.Spring AOP配置与应用
两种方式:a) 使用Annotationb) 使用xmlAnnotationa) 加上对应的xsd文件spring-aop.xsdb) beans.xml c) 此时就可以解析对应的Annotation了d) 建立我们的拦截类e) 用@Aspect注解这个类f) 建立处理方法g) 用@Before来...
分类:编程语言   时间:2014-05-31 20:20:48    阅读次数:265
Java 反射
Java反射机制package com.utils;import java.beans.Introspector;import java.beans.PropertyDescriptor;import java.lang.reflect.Field;import java.lang.reflect....
分类:编程语言   时间:2014-05-31 05:00:29    阅读次数:235
Bean、List、Map、Array、String与JSON字符串的相互转换
import java.beans.Introspector;import java.beans.PropertyDescriptor;import java.math.BigDecimal;import java.math.BigInteger;import java.util.ArrayList...
分类:Web程序   时间:2014-05-28 04:39:42    阅读次数:363
项目遇见问题解决记录
问题:ERRORorg.springframework.web.context.ContextLoader:(ContextLoader.java:215)-Contextinitializationfailedorg.springframework.beans.factory.BeanCreati...
分类:其他好文   时间:2014-05-26 20:17:33    阅读次数:205
Spring MVC与表单日期提交的问题
Spring MVC与表单日期提交的问题spring mvc 本身并不提供日期类型的解析器,需要手工绑定, 否则会出现非法参数异常. org.springframework.beans.BeanInstantiationException: Could not instantiate bean cl...
分类:编程语言   时间:2014-05-26 08:27:28    阅读次数:482
2634条   上一页 1 ... 260 261 262 263 264 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!