
正文
Spring框架文档与API(4.3.6版本)
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/
Table of Contents
12.2.1. Concepts 12.2.2. Operations on pointcuts 12.2.3. AspectJ expression pointcuts 12.2.4. Convenience pointcut implementations
12.1. Introduction 12.2. Pointcut API in Spring
A first example Aspects 'META-INF/aop.xml' Required libraries (JARS) Spring configuration Environment-specific configuration 11.9. Further Resources 12. Spring AOP APIs
Unit testing @Configurable objects Working with multiple application contexts 11.8.2. Other Spring aspects for AspectJ 11.8.3. Configuring AspectJ aspects using Spring IoC 11.8.4. Load-time weaving with AspectJ in the Spring Framework
11.8.1. Using AspectJ to dependency inject domain objects with Spring
11.6.1. Understanding AOP proxies 11.7. Programmatic creation of @AspectJ Proxies 11.8. Using AspectJ with Spring applications
11.4.1. Spring AOP or full AspectJ? 11.4.2. @AspectJ or XML for Spring AOP? 11.5. Mixing aspect types 11.6. Proxying mechanisms
Before advice After returning advice After throwing advice After (finally) advice Around advice Advice parameters Advice ordering 11.3.4. Introductions 11.3.5. Aspect instantiation models 11.3.6. Advisors 11.3.7. Example 11.4. Choosing which AOP declaration style to use
11.3.1. Declaring an aspect 11.3.2. Declaring a pointcut 11.3.3. Declaring advice
Before advice After returning advice After throwing advice After (finally) advice Around advice Advice parameters Advice ordering 11.2.5. Introductions 11.2.6. Aspect instantiation models 11.2.7. Example 11.3. Schema-based AOP support
Supported Pointcut Designators Combining pointcut expressions Sharing common pointcut definitions Examples Writing good pointcuts 11.2.4. Declaring advice
Enabling @AspectJ Support with Java configuration Enabling @AspectJ Support with XML configuration 11.2.2. Declaring an aspect 11.2.3. Declaring a pointcut
11.2.1. Enabling @AspectJ Support
11.1.1. AOP concepts 11.1.2. Spring AOP capabilities and goals 11.1.3. AOP Proxies 11.2. @AspectJ support
11.1. Introduction
The #this and #root variables 10.5.12. Functions 10.5.13. Bean references 10.5.14. Ternary Operator (If-Then-Else) 10.5.15. The Elvis Operator 10.5.16. Safe Navigation operator 10.5.17. Collection Selection 10.5.18. Collection Projection 10.5.19. Expression templating 10.6. Classes used in the examples 11. Aspect Oriented Programming with Spring
Relational operators Logical operators Mathematical operators 10.5.8. Assignment 10.5.9. Types 10.5.10. Constructors 10.5.11. Variables
10.5.1. Literal expressions 10.5.2. Properties, Arrays, Lists, Maps, Indexers 10.5.3. Inline lists 10.5.4. Inline Maps 10.5.5. Array construction 10.5.6. Methods 10.5.7. Operators
10.4.1. XML based configuration 10.4.2. Annotation-based configuration 10.5. Language Reference
Compiler configuration Compiler limitations 10.4. Expression support for defining bean definitions
Type Conversion 10.3.2. Parser configuration 10.3.3. SpEL compilation
10.3.1. The EvaluationContext interface
10.1. Introduction 10.2. Feature Overview 10.3. Expression Evaluation using Spring’s Expression Interface
Injecting a Validator Configuring Custom Constraints Spring-driven Method Validation Additional Configuration Options 9.8.3. Configuring a DataBinder 9.8.4. Spring MVC 3 Validation 10. Spring Expression Language (SpEL)
9.8.1. Overview of the JSR-303 Bean Validation API 9.8.2. Configuring a Bean Validation Provider
Format Annotation API 9.6.3. FormatterRegistry SPI 9.6.4. FormatterRegistrar SPI 9.6.5. Configuring Formatting in Spring MVC 9.7. Configuring a global date & time format 9.8. Spring Validation
9.6.1. Formatter SPI 9.6.2. Annotation-driven Formatting
ConditionalGenericConverter 9.5.4. ConversionService API 9.5.5. Configuring a ConversionService 9.5.6. Using a ConversionService programmatically 9.6. Spring Field Formatting
9.5.1. Converter SPI 9.5.2. ConverterFactory 9.5.3. GenericConverter
Registering additional custom PropertyEditors 9.5. Spring Type Conversion
9.4.1. Setting and getting basic and nested properties 9.4.2. Built-in PropertyEditor implementations
9.1. Introduction 9.2. Validation using Spring’s Validator interface 9.3. Resolving codes to error messages 9.4. Bean manipulation and the BeanWrapper
Ant-style Patterns The Classpath*: portability classpath*: prefix Other notes relating to wildcards 8.7.3. FileSystemResource caveats 9. Validation, Data Binding, and Type Conversion
Constructing ClassPathXmlApplicationContext instances - shortcuts 8.7.2. Wildcards in application context constructor resource paths
8.7.1. Constructing application contexts
8.3.1. UrlResource 8.3.2. ClassPathResource 8.3.3. FileSystemResource 8.3.4. ServletContextResource 8.3.5. InputStreamResource 8.3.6. ByteArrayResource 8.4. The ResourceLoader 8.5. The ResourceLoaderAware interface 8.6. Resources as dependencies 8.7. Application contexts and Resource paths
8.1. Introduction 8.2. The Resource interface 8.3. Built-in Resource implementations
7.16.1. BeanFactory or ApplicationContext? 7.16.2. Glue code and the evil singleton 8. Resources
Annotation-based Event Listeners Asynchronous Listeners Ordering Listeners Generic Events 7.15.3. Convenient access to low-level resources 7.15.4. Convenient ApplicationContext instantiation for web applications 7.15.5. Deploying a Spring ApplicationContext as a Java EE RAR file 7.16. The BeanFactory
7.15.1. Internationalization using MessageSource 7.15.2. Standard and Custom Events
Activating a profile Default profile 7.13.3. PropertySource abstraction 7.13.4. @PropertySource 7.13.5. Placeholder resolution in statements 7.14. Registering a LoadTimeWeaver 7.15. Additional Capabilities of the ApplicationContext
@Profile 7.13.2. XML bean definition profiles
7.13.1. Bean definition profiles
Using the @Import annotation Conditionally include @Configuration classes or @Bean methods Combining Java and XML configuration 7.13. Environment abstraction
Injecting inter-bean dependencies Lookup method injection Further information about how Java-based configuration works internally 7.12.5. Composing Java-based configurations
Declaring a bean Bean dependencies Receiving lifecycle callbacks Specifying bean scope Customizing bean naming Bean aliasing Bean description 7.12.4. Using the @Configuration annotation
Simple construction Building the container programmatically using register(Class<?>…) Enabling component scanning with scan(String…) Support for web applications with AnnotationConfigWebApplicationContext 7.12.3. Using the @Bean annotation
7.12.1. Basic concepts: @Bean and @Configuration 7.12.2. Instantiating the Spring container using AnnotationConfigApplicationContext
7.11.1. Dependency Injection with @Inject and @Named 7.11.2. @Named and @ManagedBean: standard equivalents to the @Component annotation 7.11.3. Limitations of JSR-330 standard annotations 7.12. Java-based container configuration
7.10.1. @Component and further stereotype annotations 7.10.2. Meta-annotations 7.10.3. Automatically detecting classes and registering bean definitions 7.10.4. Using filters to customize scanning 7.10.5. Defining bean metadata within components 7.10.6. Naming autodetected components 7.10.7. Providing a scope for autodetected components 7.10.8. Providing qualifier metadata with annotations 7.11. Using JSR 330 Standard Annotations
7.9.1. @Required 7.9.2. @Autowired 7.9.3. Fine-tuning annotation-based autowiring with @Primary 7.9.4. Fine-tuning annotation-based autowiring with qualifiers 7.9.5. Using generics as autowiring qualifiers 7.9.6. CustomAutowireConfigurer 7.9.7. @Resource 7.9.8. @PostConstruct and @PreDestroy 7.10. Classpath scanning and managed components
Example: the Class name substitution PropertyPlaceholderConfigurer Example: the PropertyOverrideConfigurer 7.8.3. Customizing instantiation logic with a FactoryBean 7.9. Annotation-based container configuration
Example: Hello World, BeanPostProcessor-style Example: The RequiredAnnotationBeanPostProcessor 7.8.2. Customizing configuration metadata with a BeanFactoryPostProcessor
7.8.1. Customizing beans using a BeanPostProcessor
Initialization callbacks Destruction callbacks Default initialization and destroy methods Combining lifecycle mechanisms Startup and shutdown callbacks Shutting down the Spring IoC container gracefully in non-web applications 7.6.2. ApplicationContextAware and BeanNameAware 7.6.3. Other Aware interfaces 7.7. Bean definition inheritance 7.8. Container Extension Points
7.6.1. Lifecycle callbacks
Creating a custom scope Using a custom scope 7.6. Customizing the nature of a bean
Initial web configuration Request scope Session scope Global session scope Application scope Scoped beans as dependencies 7.5.5. Custom scopes
7.5.1. The singleton scope 7.5.2. The prototype scope 7.5.3. Singleton beans with prototype-bean dependencies 7.5.4. Request, session, global session, application, and WebSocket scopes
Lookup method injection Arbitrary method replacement 7.5. Bean scopes
Limitations and disadvantages of autowiring Excluding a bean from autowiring 7.4.6. Method injection
Straight values (primitives, Strings, and so on) References to other beans (collaborators) Inner beans Collections Null and empty string values XML shortcut with the p-namespace XML shortcut with the c-namespace Compound property names 7.4.3. Using depends-on 7.4.4. Lazy-initialized beans 7.4.5. Autowiring collaborators
Constructor-based dependency injection Setter-based dependency injection Dependency resolution process Examples of dependency injection 7.4.2. Dependencies and configuration in detail
7.4.1. Dependency Injection
Instantiation with a constructor Instantiation with a static factory method Instantiation using an instance factory method 7.4. Dependencies
Aliasing a bean outside the bean definition 7.3.2. Instantiating beans
7.3.1. Naming beans
Composing XML-based configuration metadata The Groovy Bean Definition DSL 7.2.3. Using the container 7.3. Bean overview
7.2.1. Configuration metadata 7.2.2. Instantiating a container
7.1. Introduction to the Spring IoC container and beans 7.2. Container overview
7. The IoC container
6.1. Core Container Improvements 6.2. Data Access Improvements 6.3. Caching Improvements 6.4. JMS Improvements 6.5. Web Improvements 6.6. WebSocket Messaging Improvements 6.7. Testing Improvements 6.8. Support for new library and server generations III. Core Technologies
5.1. Core Container Improvements 5.2. Data Access Improvements 5.3. JMS Improvements 5.4. Web Improvements 5.5. WebSocket Messaging Improvements 5.6. Testing Improvements 6. New Features and Enhancements in Spring Framework 4.3
4.1. JMS Improvements 4.2. Caching Improvements 4.3. Web Improvements 4.4. WebSocket Messaging Improvements 4.5. Testing Improvements 5. New Features and Enhancements in Spring Framework 4.2
3.1. Improved Getting Started Experience 3.2. Removed Deprecated Packages and Methods 3.3. Java 8 (as well as 6 and 7) 3.4. Java EE 6 and 7 3.5. Groovy Bean Definition DSL 3.6. Core Container Improvements 3.7. General Web Improvements 3.8. WebSocket, SockJS, and STOMP Messaging 3.9. Testing Improvements 4. New Features and Enhancements in Spring Framework 4.1
3. New Features and Enhancements in Spring Framework 4.0
Not Using Commons Logging Using SLF4J Using Log4j II. What’s New in Spring Framework 4.x
Spring Dependencies and Depending on Spring Maven Dependency Management Maven "Bill Of Materials" Dependency Gradle Dependency Management Ivy Dependency Management Distribution Zip Files 2.3.2. Logging
2.3.1. Dependency Management and Naming Conventions
2.2.1. Core Container 2.2.2. AOP and Instrumentation 2.2.3. Messaging 2.2.4. Data Access/Integration 2.2.5. Web 2.2.6. Test 2.3. Usage scenarios
2.1. Dependency Injection and Inversion of Control 2.2. Modules
1. Getting Started with Spring 2. Introduction to the Spring Framework
