- org.springframework.context-3.1.0.M2.jar
- org.springframework.beans-3.1.0.M2.jar
- dist\org.springframework.core-3.1.0.M2.jar
- commons-logging-1.1.1.jar
- dist\org.springframework.asm-3.1.0.M2.jar
-
dist\org.springframework.expression-3.1.0.M2.jar
- commons-beanutils-1.8.0.jar
- dom4j
- Introspector java.beans.Introspector
http://www.kaifa6.com/v/J2SEApi/javaref/jdkref/java.beans.introspector_dsc.htm#getBeanInfo(java.lang.Class, java.lang.Class)
- ConvertUtils.convert("1232a", Integer.class); org.apache.commons.beanutils.ConvertUtils
<?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:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
">
<!-- for annotation should quote the three line above and a line below -->
<context:annotation-config/>
<!-- id can not been named as special character ,but name does -->
<!-- 1. normal instance of bean-->
<bean id="personService" class="beans.PersonServiceBean">
<property name="personDao" ref="personDao"></property>
<property name="testName" value="James"/>
<property name="sets">
<set>
<value>a</value>
<value>b</value>
<value>c</value>
</set>
</property>
<property name="lists">
<list>
<value>a</value>
<value>b</value>
<value>c</value>
<bean class="interfaces.PersonServiceFactory" />
<bean class="beans.PersonDaoBean"/>
</list>
</property>
<property name="maps">
<map>
<entry key="3" value="personDao"/>
<entry key="1" value-ref="personDao"/>
<entry key="2" value-ref="personDao"/>
</map>
</property>
<property name="properties">
<props>
<prop key="age">11</prop>
</props>
</property>
</bean>
<bean id="personDao" class="beans.PersonDaoBean">
</bean>
<!-- 2. static factory instance of bean-->
<bean id="personService2" class="interfaces.PersonServiceFactory" factory-method="createFactory"/>
<!-- 3. factory instance of bean-->
<bean id="personServiceFactory" class="interfaces.PersonServiceFactory"/>
<bean id="personService3" factory-bean="personServiceFactory" factory-method="createFactory2"/>
<!-- <bean id="personService3" factory-bean="personServiceFactory" factory-method="createFactory2" scope="prototype"/> -->
</beans>
<?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:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
">
<!-- FOR AUTO INJECT IN CLASS FILES -->
<context:component-scan base-package="beans"/>
</beans>
- differences between Reflect and Introspector
- Automatically detecting classes and registering bean definitions
@Service @Repository @Controller
@Scope .....
double checked lock
http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
分享到:
相关推荐
Those with at least some prior experience with Java programming. Some prior exposure to Spring Boot recommended but not required. Table of Contents Chapter 1: Introduction Chapter 2: The Basic Spring...
A developer-focused guide to writing applications using Spring Boot. You'll learn how to bypass the tedious configuration steps so that you can concentrate on ...s years of Spring development experience.
A developer-focused guide to writing applications using Spring Boot. You'll learn how to bypass the tedious configuration steps so that you can concentrate on ...s years of Spring development experience.
Those who are new to Spring or for those who have experience with Spring but want to learn what's new in Spring 5. This book assumes you have some prior coding experience in Java at least.
Along the way, you'll pick up insights from Craig's years of Spring development experience. What's Inside Develop Spring apps more efficiently Minimal to no configuration Runtime metrics with the ...
The author, a senior solutions architect and Principal Technical instructor with Pivotal, the company behind the Spring Framework, shares his experience, insights and first-hand knowledge about how ...
Microservices helps in decomposing applications into small services ... This book is repurposed for this specific learning experience from material from Packt's Mastering Spring 5.0 by Ranga Rao Karanam.
This book is for Java developers who would like to rapidly gain hands-on experience with Java/Java EE development using the Spring framework. If you are already a developer using Spring in your ...
Spring Boot Messaging: Messaging APIs for Enterprise and Integration ...Enterprise Java developers who have at least some previous experience with the Spring Framework and/or the Spring platform.
This book is for you if you have some experience with Java and web development (not necessarily in Java) and want to become proficient quickly with Spring. In Detail Spring is the most popular Java ...
Master Spring basics and core topics, and share the authors’ insights and real–world experiences with remoting, Hibernate, and EJB.... Some experience with Spring highly recommended.
If you are an experienced Java developer, with prior experience in web technologies, and want to step up in your career and stay up-to-date or learn more about Spring Web scalability, this book is for...
What you'll learn * Batch concepts and how they relate to the Spring Batch framework * How to use declarative I/O using the Spring Batch readers/writers * Data integrity techniques used by Spring ...
You will then learn how to secure and test your applications using the Spring-test and Spring-Security modules. At the end, you will enhance your development skills by getting to grips with the ...
Welcome to the **Spring Integration Samples** repository which provides **50+ samples** to help you learn [Spring Integration][]. To simplify your experience, the *Spring Integration* samples are ...