Category: Spring REST
Spring REST (Representational State Transfer)
Introduction In this tutorial we will see how to build Spring RESTFul WebService CRUD example. Here we will use Spring version 4. We will create a controller that will manage CRUD operations such as Create, Read, Update and Delete using the correct HTTP request methods POST, GET, PUT and DELETE respectively. You may also be…
Posted in Spring REST
Introduction In this tutorial I will show you an example on @PreAuthorize annotation – hasPermission() example in Spring Security. The most useful annotation @PreAuthorize, which decides whether a method can actually be invoked or not based on user’s role and permission. hasRole() method returns true if the current principal has the specified role and hasPermission()…