d0481dcb
Julien Cartigny
Support for user ...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package fr.plil.sio.web.mvc;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
@RestController
public class UserRestController {
@Resource
private UserService userService;
@RequestMapping(value = "/users/", method = RequestMethod.GET)
public List<User> listUsers() {
return userService.findAll();
}
}
|