Guest User

Untitled

a guest
Jan 23rd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. @RestController
  2. public class TestController {
  3. @RequestMapping(path = "/getTestData", method = RequestMethod.GET)
  4. public List<TestDto> getTestData() {
  5. List<TestDto> testDto = TestDtoのリストデータを取得する;
  6. // ログ
  7. for (int cnt = 0; cnt < testDto.size(); cnt++) {
  8. TestDto dto = testDto.get(cnt);
  9. System.out.println(dto.toString());
  10. }
  11. return testDto;
  12. }
  13. }
  14.  
  15. public class TestDto implements Serializable {
  16.  
  17. private static final long serialVersionUID = ~;
  18.  
  19. private Date TestTime;
  20. @NotNull
  21. private String TestText;
  22. }
Add Comment
Please, Sign In to add comment