![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
文章平均质量分 56
wenjinglian
这个作者很懒,什么都没留下…
展开
-
warn org.springframework.aop.framework.Cglib2AopProxy
服务器启动出现以下警告:WARN [org.springframework.aop.framework.Cglib2AopProxy] - <Unable to proxy method [public final org.hibernate.SessionFactory org.springframework.orm.hibernate3.support.HibernateDa...原创 2011-01-11 16:44:52 · 822 阅读 · 0 评论 -
Spring: factory-method 如何传递参数
Spring factory-method 可以创建单例类 <bean id="config" class="Configuration" factory-method="getInstance"> <!-- 配置文件路径 --> <constructor-arg type="java.lang.String" value=&q2011-03-13 23:10:41 · 1381 阅读 · 0 评论 -
spring注解jar包中的类
在自己写的jar包中使用spring注解方式,需要在导出工程为jar包时选中Add directory entries,如果没有勾选,那么spring将不扫描jar包中的注解。这时需要在配置文件中配置<bean>标签才行 http://blog.csdn.net/zhou699/article/details/7029744 http://www.oschina.net...原创 2011-12-29 23:59:35 · 503 阅读 · 0 评论 -
Spring3自定义环境配置 <beans profile="">
摘自springside3 Spring 3.1的功能,以后就不用为了区分Test, Dev, Production环境,搞几个只有细微区别的application.xml, application-test.xml及引用它们的web.xml了。首先,将applicationContext.xml中的namespace从3.0升级到3.1.xsd, 然后就可以在文件末尾加入不同环境的定义,比如...原创 2012-05-20 22:58:35 · 200 阅读 · 0 评论 -
spring配置引用文件的几种配法
在src下 <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <!-- 可以配置多个资源文件 -->..原创 2011-12-02 16:58:27 · 139 阅读 · 0 评论 -
Spring注解Aop简单使用
Spring注解Aop简单使用 结构: 相关代码配置:Anno.java package com.nassir.aop;import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.annotation.RetentionP...原创 2012-03-13 13:59:26 · 99 阅读 · 0 评论 -
Spring邮件发送
详见附件原创 2012-03-16 14:35:22 · 76 阅读 · 0 评论 -
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema documen
2013-08-10 11:04:26,923 WARN [org.springframework.beans.factory.xml.XmlBeanDefinitionReader](47) - Ignored XML validation warningorg.xml.sax.SAXParseException: schema_reference.4: Failed to r...原创 2013-08-10 11:52:08 · 440 阅读 · 0 评论 -
Spring Boot 快速入门 (官方quick start)
Spring Boot 可以很简的创建单独,生产级基于Spring 的应用并且可以直接运行。我们将Spring 平台和第三方依赖包全部整合在一起,因些你很简单的就能使用起来。大多数的Spring Boot 应用仅仅只需要一丁点Spring 配置。特性:创建独立的Spring 应用嵌入Tomcat, Jetty 或者 Undertow 直接运行(不需要发布成 war 文件)提供...原创 2015-01-25 16:41:20 · 985 阅读 · 0 评论