java-tutorials/spring-security-rest-full/README.md

58 lines
3.1 KiB
Markdown
Raw Normal View History

2013-06-03 10:54:58 -04:00
=========
2013-07-02 06:54:41 -04:00
2013-12-18 05:48:44 -05:00
## REST Example Project with Spring Security
2013-07-02 06:54:41 -04:00
2016-06-28 05:37:34 -04:00
### Courses
The "REST With Spring" Classes: http://bit.ly/restwithspring
2016-06-28 05:38:19 -04:00
2016-08-12 10:02:35 -04:00
The "Learn Spring Security" Classes: http://github.learnspringsecurity.com
2013-07-02 06:54:41 -04:00
2013-07-14 07:21:30 -04:00
### Relevant Articles:
2014-01-05 11:25:01 -05:00
- [Spring Security Expressions - hasRole Example](http://www.baeldung.com/spring-security-expressions-basic)
- [REST Pagination in Spring](http://www.baeldung.com/2012/01/18/rest-pagination-in-spring/)
2014-01-05 12:35:19 -05:00
- [HATEOAS for a Spring REST Service](http://www.baeldung.com/2011/11/13/rest-service-discoverability-with-spring-part-5/)
2014-01-05 14:08:54 -05:00
- [REST API Discoverability and HATEOAS](http://www.baeldung.com/2011/11/06/restful-web-service-discoverability-part-4/)
- [ETags for REST with Spring](http://www.baeldung.com/2013/01/11/etags-for-rest-with-spring/)
2014-03-20 15:59:42 -04:00
- [Error Handling for REST with Spring 3](http://www.baeldung.com/2013/01/31/exception-handling-for-rest-with-spring-3-2/)
2014-05-16 15:49:47 -04:00
- [Integration Testing with the Maven Cargo plugin](http://www.baeldung.com/2011/10/16/how-to-set-up-integration-testing-with-the-maven-cargo-plugin/)
2016-02-08 04:58:55 -05:00
- [Introduction to Spring Data JPA](http://www.baeldung.com/2011/12/22/the-persistence-layer-with-spring-data-jpa/)
2016-02-08 05:13:41 -05:00
- [Project Configuration with Spring](http://www.baeldung.com/2012/03/12/project-configuration-with-spring/)
2016-02-09 07:35:18 -05:00
- [REST Query Language with Spring and JPA Criteria](http://www.baeldung.com/rest-search-language-spring-jpa-criteria)
2016-02-09 07:38:17 -05:00
- [REST Query Language with Spring Data JPA Specifications](http://www.baeldung.com/rest-api-search-language-spring-data-specifications)
2016-02-09 07:43:43 -05:00
- [REST Query Language with Spring Data JPA and QueryDSL](http://www.baeldung.com/rest-api-search-language-spring-data-querydsl)
2016-02-10 06:35:55 -05:00
- [REST Query Language Advanced Search Operations](http://www.baeldung.com/rest-api-query-search-language-more-operations)
2016-02-10 06:42:54 -05:00
- [Metrics for your Spring REST API](http://www.baeldung.com/spring-rest-api-metrics)
2016-02-10 06:46:41 -05:00
- [REST Query Language with RSQL](http://www.baeldung.com/rest-api-search-language-rsql-fiql)
2016-02-10 07:13:27 -05:00
- [Spring RestTemplate Tutorial](http://www.baeldung.com/rest-template)
2016-02-10 19:52:17 -05:00
- [A Guide to CSRF Protection in Spring Security](http://www.baeldung.com/spring-security-csrf)
2016-10-04 04:55:31 -04:00
- [Intro to Spring Security Expressions](http://www.baeldung.com/spring-security-expressions)
- [Changing Spring Model Parameters with Handler Interceptor](http://www.baeldung.com/spring-model-parameters-with-handler-interceptor)
- [Introduction to Spring MVC HandlerInterceptor](http://www.baeldung.com/spring-mvc-handlerinterceptor)
2016-10-04 05:34:40 -04:00
- [Using a Custom Spring MVCs Handler Interceptor to Manage Sessions](http://www.baeldung.com/spring-mvc-custom-handler-interceptor)
2017-04-09 03:43:50 -04:00
- [Bootstrap a Web Application with Spring 4](http://www.baeldung.com/bootstraping-a-web-application-with-spring-and-java-based-configuration)
- [REST Query Language Implementing OR Operation](http://www.baeldung.com/rest-api-query-search-or-operation)
2013-07-14 07:21:30 -04:00
2013-07-02 06:54:41 -04:00
### Build the Project
```
mvn clean install
```
2013-12-18 05:48:44 -05:00
### Set up MySQL
```
mysql -u root -p
> CREATE USER 'tutorialuser'@'localhost' IDENTIFIED BY 'tutorialmy5ql';
> GRANT ALL PRIVILEGES ON *.* TO 'tutorialuser'@'localhost';
> FLUSH PRIVILEGES;
```
2013-07-02 06:54:41 -04:00
### Use the REST Service
```
curl http://localhost:8080/spring-security-rest-full/foos
```