Spring Security – Config Security for Web MVC by Spring Boot

Configure Spring Security for Spring MVC web application + SpringBoot

In the tutorial, JavaSampleApproach will show you how to configure Security for SpringMVC web application.

[Continue reading…] “Spring Security – Config Security for Web MVC by Spring Boot”

Spring MVC – @RequestMapping with Methods, Headers, Params, @PathVariable and @RequestParam

Creating RESTful web services is more comfortable and simpler when using Spring MVC Annotation.
The tutorial shows you how to use @RequestMapping with Methods, Headers, Params, @PathVariable and @RequestParam.
We will have an example which almost covers all @RequestMapping cases.

[Continue reading…] “Spring MVC – @RequestMapping with Methods, Headers, Params, @PathVariable and @RequestParam”

Spring MVC RESTful Web Service – difference between @Controller and @RestController

Creating RESTful web services is more comfortable and simpler when using Spring MVC Annotation.
The tutorial shows you overview of a traditional Spring MVC Controller and the Spring MVC RESTful Web Service Controller which are implemented in new Spring Framework, and difference between 2 annotations: @Controller and @RestController.

[Continue reading…] “Spring MVC RESTful Web Service – difference between @Controller and @RestController”

Spring Stereotype Annotations – Difference between @Service and @Repository

Spring provides some stereotype annotations, among them, @Service and @Repository are special cases of @Component for specific purposes. By annotating component classes with @Service, @Repository, your classes are more clear, thus, Spring will automatically scan and import those beans into the container, so we don’t need to define them using XML.

This tutorial show you overview of Repository Pattern & a Service Layer, as well as difference between @Service & @Repository.

[Continue reading…] “Spring Stereotype Annotations – Difference between @Service and @Repository”

Spring JPA Web Support

Spring JPA Web support ships by a module for convenient programming with repository model.
– A DomainClassConverter helps to resolve an repository instance from request parameters or path variables.
– HandlerMethodArgumentResolver is helper for resolving Pageable and Sort instances from request parameters.

[Continue reading…] “Spring JPA Web Support”

Spring Web MVC – Spring Form Submission | Spring Boot

Web Form Submission is regular task when developing a Web page. In the tutorial, JavaSampleApproach will introduce you how to use Spring Form Submission when building a Spring MVC Web page.

Related Posts:
1. How to integrate Http Angularjs & Spring Boot
2. How to integrate JQuery Ajax POST/GET & Spring Boot

[Continue reading…] “Spring Web MVC – Spring Form Submission | Spring Boot”