`
k1280000
  • 浏览: 202576 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

spring learn experience

    博客分类:
  • SSH
 
阅读更多

  • 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

 

 

 

分享到:
评论

相关推荐

    Learn Microservices with Spring Boot

    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...

    Spring Boot in Action

    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.

    spring boot in action

    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.

    Beginning Spring 5: From Novice to Professional

    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.

    Spring Boot in Action(Manning,2015)

    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 ...

    Pro Spring Boot 2第2版-2009-EPUB版

    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 ...

    Spring: Microservices with Spring Boot

    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.

    Spring Recipes: A Problem-Solution Approach, Second Edition

    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

    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.

    Spring.Cookbook.1783985801.epub

    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 ...

    Pro Spring 5(Apress,5ed,2017).pdf

    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.

    Spring.MVC.Cookbook.1784396419

    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...

    pro spring batch

    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 ...

    Learning Spring 5.0

    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 ...

    spring -integratioin

    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 ...

Global site tag (gtag.js) - Google Analytics