随笔 - 3065  文章 - 0 评论 - 0 阅读 - 735万
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

随笔分类 -  Spring

1 2 3 4 5 下一页
Spring @Configuration注解及配置方法
摘要:转自:https://www.jb51.net/article/184822.htm Spring @Configuration注解 Spring3.0开始,@Configuration用于定义配置类,定义的配置类可以替换xml文件,一般和@Bean注解联合使用。 @Configuration注解主 阅读全文
posted @ 2020-09-21 14:09 Sharpest 编辑
org.springframework.dao.DuplicateKeyException: 问题
摘要:转自:https://blog.51cto.com/chengxuyuan/1786938 org.springframework.dao.DuplicateKeyException: a different object with the same identifier value was alr 阅读全文
posted @ 2019-08-31 10:11 Sharpest 编辑
ConfigurableApplicationContext
摘要:转自:https://blog.csdn.net/weixin_39165515/article/details/77169231 此接口结合了所有ApplicationContext需要实现的接口。因此大多数的ApplicationContext都要实现此接口。它在ApplicationConte 阅读全文
posted @ 2019-05-18 15:06 Sharpest 编辑
Resource通配符路径 ——跟我学spring3
摘要:转自: https:// jinnianshilongnian.iteye.com/blog/1416322 阅读全文
posted @ 2019-05-18 11:55 Sharpest 编辑
Spring学习总结(四)——表达式语言 Spring Expression Language
摘要:转自:https://www.cnblogs.com/best/p/5748105.html 目录 SpEL简介与功能特性 一、为什么需要Spring表达式语言 二、SpEL表达式Hello World! 三、SpEL表达式 3.1、文字表达式 3.2、SPEL语言特性 3.2.1、属性 3.2.2 阅读全文
posted @ 2019-05-18 11:46 Sharpest 编辑
Spring讲解-----------表达式语言
摘要:转自:https://blog.csdn.net/u011225629/article/details/47143083 5.1 概述5.1.1 概述 Spring表达式语言全称为“Spring Expression Language”,缩写为“SpEL”,类似于Struts2x中使用的OGNL表达 阅读全文
posted @ 2019-05-18 11:45 Sharpest 编辑
Spring3.1新属性管理API:PropertySource、Environment、Profile
摘要:转自:https://jinnianshilongnian.iteye.com/blog/2000183 Spring3.1提供了新的属性管理API,而且功能非常强大且很完善,对于一些属性配置信息都应该使用新的API来管理。虽然现在Spring已经到4版本了,这篇文章来的晚点。 新的属性管理API 阅读全文
posted @ 2019-05-18 09:35 Sharpest 编辑
Spring AOP schema找不到报错 原
摘要:转自:https://my.oschina.net/zetaplusae/blog/144821 使用jersey+spring构建RESTful服务,并将应用部署在不能连接外网的服务器上。部署时,报错信息如下, 也就是,找不到如下的元素的声明 解决: 通过去除spring配置文件中schemaLo 阅读全文
posted @ 2018-12-20 21:37 Sharpest 编辑
Spring的Task任务
摘要:转自:http://liuna718-163-com.iteye.com/blog/2215076 Spring Task提供两种方式进行配置,一种是annotation(标注),而另外一种就是XML配置了。因为任务调度这样的需求,通常改动都是比较多的,如果用annotation的方式的话,改动就变 阅读全文
posted @ 2018-11-26 16:38 Sharpest 编辑
关于Spring中的<context:annotation-config/>配置(开启注解)
摘要:转自:https://www.cnblogs.com/doudouxiaoye/p/5681518.html 当我们需要使用BeanPostProcessor时,直接在Spring配置文件中定义这些Bean显得比较笨拙,例如: 使用@Autowired注解,必须事先在Spring容器中声明Autow 阅读全文
posted @ 2018-11-26 15:19 Sharpest 编辑
java编程中的断言工具类(org.springframework.util.Assert)
摘要:转自:https://blog.csdn.net/gokeiryou263/article/details/19612471 断言工具类:Assert类, java.lang.Object >org.springframework.util.Assert 先举个例子, 当我们在编写类的方法时,常常需 阅读全文
posted @ 2018-11-14 01:39 Sharpest 编辑
使用spring的DefaultResourceLoader自定义properties文件加载工具类
摘要:转自;https://www.cnblogs.com/zrbfree/p/6230957.html 阅读全文
posted @ 2018-11-13 15:07 Sharpest 编辑
Spring工具类:WebApplicationContextUtils
摘要:转自:https://www.cnblogs.com/luoruiyuan/p/5498407.html 当 Web 应用集成 Spring 容器后,代表 Spring 容器的WebApplicationContext对象将以 WebApplicationContext.ROOT_WEB_APPLI 阅读全文
posted @ 2018-10-29 11:04 Sharpest 编辑
Spring配置文件beans.xml头部配置解释
摘要:转自:https://www.cnblogs.com/EasonJim/p/6880329.html 比如一个标准的beans.xml文件如下所示: 解释: 1、【xmlns="http://www.springframework.org/schema/beans"】 声明xml文件默认的命名空间, 阅读全文
posted @ 2018-10-10 13:47 Sharpest 编辑
Spring验证的错误返回------BindingResult
摘要:Spring验证的错误返回 BindingResult 参考资料:http://www.mkyong.com/spring-mvc/spring-mvc-form-errors-tag-example/ <%Enumeration<String> enums=request.getAttribute 阅读全文
posted @ 2018-03-29 13:38 Sharpest 编辑
SpringAop中JoinPoint对象
摘要:JoinPoint的用法 JoinPoint 对象 JoinPoint对象封装了SpringAop中切面方法的信息,在切面方法中添加JoinPoint参数,就可以获取到封装了该方法信息的JoinPoint对象. 常用api: ProceedingJoinPoint对象 ProceedingJoinP 阅读全文
posted @ 2018-03-21 10:27 Sharpest 编辑
spring中aop的注解实现方式简单实例
摘要:转自:http://www.php.cn/java-article-373934.html 注解方式实现aop我们主要分为如下几个步骤(自己整理的,有更好的方法的话,欢迎交流codecjh@163.com): 1.在切面类(为切点服务的类)前用@Aspect注释修饰,声明为一个切面类。 2.用@Po 阅读全文
posted @ 2018-03-21 09:42 Sharpest 编辑
JdbcTemplate简单介绍
摘要:转自:http://www.php.cn/java-article-368819.html 一、关于JdbcTemplate JdbcTemplate是最基本的Spring JDBC模板,这个模板支持简单的JDBC数据库访问功能以及基于索引参数的查询。 Spring数据访问模板:在数据库操作过程中, 阅读全文
posted @ 2017-12-12 14:32 Sharpest 编辑
Spring RootBeanDefinition,ChildBeanDefinition,GenericBeanDefinition
摘要:转自:https://blog.csdn.net/joenqc/article/details/68942972 RootBeanDefinition,ChildBeanDefinition,GenericBeanDefinition均继承了AbstractBeanDefiniton,其中BeanD 阅读全文
posted @ 2017-12-08 09:40 Sharpest 编辑
使用@Order调整配置类加载顺序
摘要:转自:https://blog.csdn.net/qq_15037231/article/details/78158553 4.1 @Order Spring 4.2 利用@Order控制配置类的加载顺序 4.2 演示 两个演示bean 两个配置类,注意@Order配置加载的顺序 package c 阅读全文
posted @ 2017-12-06 21:44 Sharpest 编辑

1 2 3 4 5 下一页
点击右上角即可分享
微信分享提示