39 lines
1.2 KiB
Markdown
Raw Normal View History

2013-06-03 17:54:58 +03:00
=========
2013-07-02 13:54:41 +03:00
## REST Example Project with Spring
2013-07-02 13:54:41 +03:00
2016-06-28 12:37:34 +03:00
### Courses
The "REST With Spring" Classes: http://bit.ly/restwithspring
2016-06-28 12:38:19 +03:00
2016-08-12 17:02:35 +03:00
The "Learn Spring Security" Classes: http://github.learnspringsecurity.com
2013-07-02 13:54:41 +03:00
2013-07-14 14:21:30 +03:00
### Relevant Articles:
- [Integration Testing with the Maven Cargo plugin](http://www.baeldung.com/integration-testing-with-the-maven-cargo-plugin)
- [Introduction to Spring Data JPA](http://www.baeldung.com/the-persistence-layer-with-spring-data-jpa)
- [Project Configuration with Spring](http://www.baeldung.com/project-configuration-with-spring)
2016-02-10 13:42:54 +02:00
- [Metrics for your Spring REST API](http://www.baeldung.com/spring-rest-api-metrics)
2019-02-27 15:33:20 +08:00
- [Bootstrap a Web Application with Spring 5](http://www.baeldung.com/bootstraping-a-web-application-with-spring-and-java-based-configuration)
2018-12-15 05:12:54 +08:00
- [Spring Security Expressions - hasRole Example](https://www.baeldung.com/spring-security-expressions-basic)
2013-07-14 14:21:30 +03:00
2013-07-02 13:54:41 +03:00
### Build the Project
```
mvn clean install
```
2013-12-18 12:48:44 +02: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 13:54:41 +03:00
### Use the REST Service
```
curl http://localhost:8082/spring-rest-full/auth/foos
2013-07-02 13:54:41 +03:00
```