This tutorial illustrates how to use or integrate the Spring MVC and AngularJS together. AngularJS is popular JS framework for building the single page web applications. Also most of the mobile applications and rich user interfaces are using the AngularJS framework. Here we will show how to use this framework in the view layer and …
Spring Framework
Spring MVC Redirect Example
This tutorial explains how to redirect to a new URL inside the Spring MVC controller. There is attribute “redirect” which can be prefixed to the view name to indicate that the new request should be a redirected one. also read: Spring 4 Tutorials Introduction to Spring MVC Framework 1. Spring MVC Controller SpringMVCController.java 2. Views …
Spring Data REST Exporter
This tutorial provides the detailed instruction on how to use Spring Data REST project in your Spring MVC applications to export your JPA entities. The greatest advantage of using the Spring Data REST is that, it easily exports the entities and made available through the HTTP protocol. Using Spring Data REST repository exporter project, you …
Spring Roo + Spring Data + MongoDB Repositories Integration
Since Spring Data includes support for MongoDB repositories, we can use MongoDB as a persistence option when using Roo. We just won’t have the option of using the active record style for the persistence layer, we can only use the repositories. Other than this difference, the process is very much the same as for a Spring ROO …
Spring Roo + Spring Data JPA Repositories + Eclipse Integration
Spring Roo is a rapid application development tool for Java developers. With Roo, you can easily build full Java applications in minutes. This tutorial isn’t intended for providing full coverage for Spring Roo, rather it should spot the focus to provide a good introduction for using Spring Data inside those applications that built with Spring …
Spring Data Neo4j Tutorial
This tutorial presents a well explained example application for using Spring Data Neo4j. In my previous article, I have explained about the Neo4j database installation in your Windows 7 system. Simply, it’s node and arcs; the nodes represent the business domain or entities, while the arcs works as a relationships between those defined entities. Social …
Spring : How To Load Properties File using @Value Annotation
This example shows how to load the properties file values using the @Value annotation. Accessing the property file values in the Spring application involves the following steps: Add the property file details to spring bean configuration file. You have to use the “classpath” prefix if you want to load the files from the classpath. Create …
How To Pass Multiple Parameters To Spring MVC Controller
This example shows how to pass the multiple parameters to the Spring controller. In our previous article, I have explained how to use the @PathVariable to pass the parameters to the controller. This example shows a simple example on how to pass multiple parameters using the @PathVariable. 1. Spring Controller HelloController.java 2. Spring Configuration spring-dispatcher-servlet.xml …