30 lines
535 B
Markdown
Raw Normal View History

2013-06-03 17:54:58 +03:00
=========
2013-07-02 13:54:41 +03:00
2013-12-18 12:48:44 +02:00
## REST Example Project with Spring Security
2013-07-02 13:54:41 +03:00
2013-07-14 14:21:30 +03:00
### Relevant Articles:
2013-12-18 12:48:44 +02:00
- [Spring Security Expressions <20> hasRole Example](http://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:8080/spring-security-rest-full/foos
```