Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RestController
- public class TestController {
- @RequestMapping(path = "/getTestData", method = RequestMethod.GET)
- public List<TestDto> getTestData() {
- List<TestDto> testDto = TestDtoのリストデータを取得する;
- // ログ
- for (int cnt = 0; cnt < testDto.size(); cnt++) {
- TestDto dto = testDto.get(cnt);
- System.out.println(dto.toString());
- }
- return testDto;
- }
- }
- public class TestDto implements Serializable {
- private static final long serialVersionUID = ~;
- private Date TestTime;
- @NotNull
- private String TestText;
- }
Add Comment
Please, Sign In to add comment