Archives

Spring Data MongoDB with Spring MVC

Below is the steps to create a Spring MVC application with MongoDB 1. Create MongoDB Entity 2. Define MongoDB DataSource 3. Define MongoDBTemplate 4. Create MongoDB Repository interface 5. Implement MongoDB Repository interface 6. Define your MongoDB Controller 7. Test MongoDB DataSource 8. Test MongoDBTemplate 9. Test MongoDB Repository Create MongoDB Entity Define MongoDB DataSource […]

Rate this:

Read More

Jdbc, Hibernate, Jpa, Spring Data setup with no xml

Below is a very easy way in Spring to create DataSources with no XML: 1. DataSource 1.1 Define DataSource Interface 1.2 Implement DataSource Interface 1.3 Test if DataSource is connected 2. Jdbc 2.1 Define Jdbc Configuration 2.2 Define Jdbc Service 2.3 Test Jdbc Service 3. Hibernate 3.1 Define Hibernate Configuration 3.2 Define Hibernate Service 3.3 […]

Rate this:

Read More