Spring Logo
Spring Tutorials & Examples


1. CORE
What's "config method" in Spring framework
Tutorial on how to inject a logger variable by using annotation in Spring.
Why DAO or Respository bean can be singleton in Spring
Why spring can use singleton for Dao or Repository beans while JEE using stateless bean pool


2. JMS
Use Spring JMS and ActiveMQ to send message
Tutorial on how to send out message by using Spring JMS and apache ActiveMQ.
Use Spring JMS and ActiveMQ to receive message - MessageListener
Tutorial on how to receive message by implementation of Spring MessageListener interface.
Use Spring JMS and ActiveMQ to receive message - MessageListenerAdapter
Tutorial on how to receive message by using Spring MessageListenerAdapter + POJO java class.
Use Spring JMS and ActiveMQ to receive message - Annotation
Tutorial on how to receive message by using Spring 4.1 Annoations + POJO java class.


3. MVC
Understand web.xml in Spring MVC project
A demo to help understand web.xml in Spring MVC project
How to setup Spring MVC project with maven in Eclipse
How to setup maven Spring MVC project in Eclipse step by step
Java-based Spring mvc configuration - without Spring security
A hello world example on how to use java-based configuration for spring web project, without spring security
Java-based Spring mvc configuration - with Spring security
Tutorial on how to use spring security in practical way, username+passwd stored in application defined database tables. 
Replace jpa persistence.xml with java based configuration in Spring
Replace jpa persistence.xml with spring's java-based configuration
Asynchronous Spring MVC
A hello world example on how to build an asynchronous Spring MVC web application.
Exception handling in spring mvc/rest application
Tutorial on how to handle exceptions in spring web application 


4. Persistence
How to use H2 embedded DB in spring project
How to use embedded H2 database. This demo uses H2 in a spring project, and it's pretty much same for all maven projects.
 
5. Boot
 
6. Test
Use Spring Test without @RunWith(SpringJUnit4ClassRunner.class)
How to write Spring test case without using annotation @RunWith of JUnit.
Play with spring integration test
Difference between unit test and integration test is introduced. Also a quich cheat sheet for writing spring integration test case, as well as a hello world example,  are provided.
How to separate integration test from unit test
How to put integrtion test cases in a different directory from unit test cases, but still in the same project. Make both eclipse and maven happy with it.
 
7. Misc
Spring Scheduler hello world example
Tutorial on how to use Spring annotation @Scheduled to run any task in the future.
How to inject a logger variable by using annotation in Spring
Tutorial on how to inject a logger variable by using annotation in Spring.
Setup development/test/production using Spring profile in XML config
Tutorial on how to set dev/test/prod environments in Spring xml style config.
Setup development/test/production using Spring profile in Java config
Tutorial on how to set dev/test/prod environments in Spring Java style config.

2 comments:

  1. How to remove a message from a Quee?

    ReplyDelete
  2. Please Add some tutorial for Spring Boot. Thanks!!!

    ReplyDelete

Powered by Blogger.

About The Author

My Photo

Has been a senior software developer, project manager for 10+ years. Dedicate himself to Alcatel-Lucent and China Telecom for delivering software solutions.

Pages

Unordered List