码迷,mamicode.com
首页 >  
搜索关键字:beans    ( 2634个结果
spring循环引用的问题
很久没写技术贴了,这两天被spring的循环引用搞死了,发文记之。前几天,项目结构做了调整,把我所在的项目代码嵌入另一个项目,然后就杯具了,症状如下:Bean with name ‘xxxService’ has been injected into other beans [xxxService]...
分类:编程语言   时间:2015-01-20 17:16:54    阅读次数:279
No qualifying bean of type [javax.persistence.EntityManage] 异常问题的解决
引言: 在Spring Web项目中一般都会使用OpenEntityManagerInViewFilter来保证JPA session的正常关闭,在笔者的项目中,使用了Spring + Spring Data + JPA + Hibernate来的架构来组织项目,碰到了org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'entityManagerFactory' is defined 的异常信息,将过...
分类:编程语言   时间:2015-01-20 15:55:10    阅读次数:504
spring配置记录笔记
<beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jee="http://www.springframework.org/schema/jee"xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframew..
分类:编程语言   时间:2015-01-19 06:52:30    阅读次数:189
Spring Framework源码(六):Spring AOP之解析标签
首先看下spring framework配置例子:     服务器的servlet容器在加载web.xml文件启动后,会使用一个org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader类来读取applicationContext.xml文件,当解析aop标签时它会调用B...
分类:编程语言   时间:2015-01-19 00:16:53    阅读次数:263
[Java]Spring所需要的jar包和作用释义
Spring——jar包详解spring-beans.jar 访问配置文件、创建和管理bean 以及进行Inversion of Control / Dependency Injection(IoC/DI)操作相关的所有类spring-context.jar 可以找到使用Spring Applica...
分类:编程语言   时间:2015-01-17 06:23:35    阅读次数:492
使用solrj查询数据(java代码)
实体类Student,添加Field注解package com.cs.solr.entity;import org.apache.solr.client.solrj.beans.Field;public class Student { @Field("id") private Integ...
分类:编程语言   时间:2015-01-15 23:43:24    阅读次数:304
JSON实用类,用来实现对象和JSON字符串的互相转换
JSON实用类,用来实现对象和JSON字符串的互相转换import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.lang.reflect.Field; import java.math.BigDecimal; ...
分类:Web程序   时间:2015-01-15 22:06:12    阅读次数:253
Spring配置文件的加载,及装载多个beans.xml文件
applicationContext.xml 是spring的全局配置文件,用来控制srping的特性1 手动加载自定义的beans.xml文件@Testpublic void testAutoWire() throws Exception {ApplicationContext ctx = new...
分类:编程语言   时间:2015-01-15 21:38:59    阅读次数:431
jmx
jmx    JMX        即 Java Management Extensions   Java管理扩展 MBean   即 managed beans                         被管理的Beans 一个MBean是一个被管理的Java对象,有点类似于JavaBean,一个设备、一个应用或者任何资源都可以被表示为MBean,MBean会暴露一个接口对外,这...
分类:其他好文   时间:2015-01-15 18:21:56    阅读次数:166
浅析Spring框架下PropertyPlaceholderConfigurer类[转载]
要了解这个类首先要弄清楚一个概念:bean factory post-processor官方解释是这样的:A bean factory post-processor is a java class which implements theorg.springframework.beans.facto...
分类:编程语言   时间:2015-01-15 17:31:24    阅读次数:209
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!