![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
文章平均质量分 66
哈天奇不奇
这个作者很懒,什么都没留下…
展开
-
Spring Module
As of Spring version 3.1, Spring comes with 20 modules, packaged into 20 JAR files. JAR File Description aop This module contains all the classes you need to use Spring’s AO...原创 2012-09-24 14:15:50 · 254 阅读 · 0 评论 -
@RequestMapping —— @CookieValue注解
使用@CookieValue绑定请求中的Cookie值 Demo原创 2016-08-10 22:03:11 · 132 阅读 · 0 评论 -
模型数据处理 —— @SessionAttributes
@SessionAttributes Demo1(未加@SessionAttributes) SpringMVCTest.java package org.fool.springmvc; import java.util.Date; import org.springframework.stereotype.Controller; import org.springfr...原创 2016-08-16 20:43:11 · 95 阅读 · 0 评论 -
Spring整合JSON之@RequestBody和@ResponseBody
原创转载请注明出处:http://agilestyle.iteye.com/blog/2318017 Reference @RequestBody http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#mvc-ann-requestbody @ResponseBody ...原创 2016-08-17 17:19:31 · 94 阅读 · 0 评论 -
Spring整合Velocity JavaMail
原创转载请注明出处:http://agilestyle.iteye.com/admin/blogs/2323882 Project Directory Maven Dependency <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4...原创 2016-09-12 10:12:50 · 133 阅读 · 0 评论 -
Spring读取配置文件applicationContext.xml
原创转载请注明出处:http://agilestyle.iteye.com/admin/blogs/2325616 1.Spring配置文件在类路径下面 即配置文件在“src/main/resources”目录下,可以通过如下代码获取相应的bean AbstractApplicationContext context = new ClassPathXmlApplicationCon...原创 2016-09-20 13:07:21 · 199 阅读 · 0 评论 -
Spring AOP Annotation实现
原创转载请注明出处:http://agilestyle.iteye.com/admin/blogs/2325718 Project Directory Maven Dependency <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4...原创 2016-09-20 17:56:27 · 86 阅读 · 0 评论 -
proxy-target-class="false"与proxy-target-class="true"区别
原创转载请注明出处:http://agilestyle.iteye.com/blog/2326257 <aop:aspectj-autoproxy proxy-target-class="false"/> 基于接口,使用JDK动态代理 JDK Dynamic proxy can only proxy by interface (so your target class ...原创 2016-09-22 16:15:40 · 198 阅读 · 0 评论 -
Spring @Async Demo
原创转载请注明出处:http://agilestyle.iteye.com/blog/2327025 模拟一个业务场景:系统新用户注册成功后,异步发送邮件。 Project Directory Maven Dependency <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http...原创 2016-09-26 10:26:34 · 172 阅读 · 0 评论 -
Spring Task Scheduling读书笔记
Task Scheduling in Spring Introducing the Spring TaskScheduler Abstraction Relationship between trigger, task, and scheduler Reference Apress.Pro Spring 4th Edition.2014 - CHAPTER 11 T...原创 2016-09-27 13:28:02 · 331 阅读 · 0 评论 -
Spring @Scheduled Demo
原创转载请注明出处:http://agilestyle.iteye.com/blog/2327299 Project Directory Maven Dependency <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" x...原创 2016-09-27 13:52:03 · 192 阅读 · 0 评论 -
Spring @Qualifier注解
原创转载请注明出处:http://agilestyle.iteye.com/blog/2330133 考虑一个如下的场景:如图所示,两个Invoice的Service实现同一个接口,在Resource下调用两个服务的话,需要使用@Qualifier注解来确保注入的Bean是唯一的。 IBatchApprovalService.java public interface IBatch...原创 2016-10-12 16:26:23 · 113 阅读 · 0 评论 -
Spring Transaction Isolation
原创转载请注明出处:http://agilestyle.iteye.com/blog/2357197 Spring Transaction Isolation Summary Note: Oracle默认的隔离级别是 READ COMMITTED MySQL InnoDB的隔离级别是 REPEATABLE READ 事务隔离级别越高,就越能保证数据的完整性和...原创 2017-02-15 13:28:38 · 115 阅读 · 0 评论 -
Spring Transaction Propagation
原创转载请注明出处:http://agilestyle.iteye.com/blog/2357214 Spring Transaction Propagation Reference http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/transaction/annotation/...原创 2017-02-15 14:11:54 · 85 阅读 · 0 评论 -
Spring Bean Scopes
原创转载请注明出处:http://agilestyle.iteye.com/blog/2357236 Spring Bean Scopes Reference http://docs.spring.io/spring/docs/current/spring-framework-reference/html/beans.html#beans-factory-scopes ...原创 2017-02-15 15:00:35 · 211 阅读 · 0 评论 -
Spring常见术语、操作、区别
原创转载请注明出处:http://agilestyle.iteye.com/blog/2360084 什么是Spring? Spring框架中的核心组件只有3个:Core、Context、Bean。 Bean:演出中的演员 Context:演出的舞台背景 Core:演出的道具 它们构建起了整个Spring的骨骼架构,没有它们就不可能有AOP、Web等上层的特性功能。 S...原创 2017-03-03 13:34:43 · 221 阅读 · 0 评论 -
@RequestMapping —— @RequestHeader注解
使用@RequestHeader绑定请求报头的属性值 Demo原创 2016-08-10 21:45:34 · 863 阅读 · 0 评论 -
@RequestMapping —— @RequestParam注解
使用@RequestParam绑定请求参数值原创 2016-08-10 21:41:57 · 99 阅读 · 0 评论 -
Struts2+Spring3+Hibernate4整合之Spring配置文件
applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="原创 2012-12-25 10:53:59 · 55 阅读 · 0 评论 -
Spring Data CRUD
原创转载请注明出处:http://agilestyle.iteye.com/blog/2299253 1.Maven Dependency <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoc...原创 2016-05-19 14:40:53 · 82 阅读 · 0 评论 -
详解@RequestMapping
A、@RequestMapping org.springframework.web.bind.annotation.RequestMapping Annotation for mapping web requests onto specific handler classes and/or handler methods. Provides consistent style ...原创 2013-01-07 14:10:10 · 214 阅读 · 0 评论 -
基于注解的SpringMVC简单介绍(转)
SpringMVC是一个基于DispatcherServlet的MVC框架,每一个请求最先访问的都是DispatcherServlet,DispatcherServlet负责转发每一个Request请求给相应的Handler,Handler处理以后再返回相应的视图(View)和模型(Model),返回的视图和模型都可以不指定,即可以只返回Model或只返回View或都不返回。在使用注解的Sp...原创 2013-01-08 13:27:19 · 58 阅读 · 0 评论 -
Spring 3 MVC Hello World Example
1.Maven Dependency <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=...原创 2013-01-14 10:34:23 · 67 阅读 · 0 评论 -
Spring 3 MVC Rest Hello World Example
1.Maven Dependency <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="h原创 2013-01-14 12:54:31 · 65 阅读 · 0 评论 -
Spring MVC DispatcherServlet Request Processing Workflow
The Workflow A high-level overview of the request processing workflow A more complete view of the request processing workflow Prepare a Request Before the DispatcherServlet will start dis...原创 2013-01-17 14:01:12 · 203 阅读 · 0 评论 -
Spring MVC Supported Method Argument Annotations and Return Value
Supported Method Argument Annotations All these different method argument types and annotations allow us to write very flexible request handling methods. RequestParam The RequestParam annota...原创 2013-01-17 14:56:58 · 93 阅读 · 0 评论 -
Spring JDBC CRUD
1.Maven Dependency <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.a...原创 2013-03-20 14:39:23 · 75 阅读 · 0 评论 -
Spring Hibernate CRUD
1.Maven Dependency <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.ap...原创 2013-03-21 14:21:54 · 68 阅读 · 0 评论 -
Spring Injection with @Resource, @Autowired and @Inject(转)
Overview I’ve been asked several times to explain the difference between injecting Spring beans with ‘@Resource’, ‘@Autowired’, and ‘@Inject’. While I received a few opinions from colleagues and re...原创 2013-03-25 13:51:41 · 93 阅读 · 0 评论 -
Spring MVC CRUD
1.Maven Dependency <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="h原创 2013-03-26 13:41:58 · 77 阅读 · 0 评论 -
@RequestMapping —— Ant路径
使用@RequestMapping映射请求原创 2016-08-09 22:56:35 · 138 阅读 · 0 评论 -
@RequestMapping —— 请求方式、请求参数、请求头
映射请求方式、请求参数、请求头 Demo value, method params, headers原创 2016-08-09 23:05:44 · 916 阅读 · 0 评论 -
@RequestMapping —— @PathVariable注解
@PathVariable映射URL绑定的占位符 Demo原创 2016-08-09 23:28:13 · 79 阅读 · 0 评论 -
Spring MVC processing flow
原创转载请注明出处:http://agilestyle.iteye.com/blog/2369016 DispatcherServlet receives the request. DispatcherServlet dispatches the task of selecting an appropriate controller to HandlerMapping. Handle...原创 2017-04-13 19:36:20 · 207 阅读 · 0 评论