{"id":1742,"date":"2019-08-07T20:07:09","date_gmt":"2019-08-07T11:07:09","guid":{"rendered":"http:\/\/idealive.jp\/blog\/?p=1742"},"modified":"2019-08-07T20:07:09","modified_gmt":"2019-08-07T11:07:09","slug":"springboot%e3%81%ae%e3%83%90%e3%83%aa%e3%83%87%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3","status":"publish","type":"post","link":"https:\/\/idealive.jp\/blog\/2019\/08\/07\/springboot%e3%81%ae%e3%83%90%e3%83%aa%e3%83%87%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/","title":{"rendered":"SpringBoot\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3"},"content":{"rendered":"<p>\u7686\u3055\u3093\u3053\u3093\u306b\u3061\u306f\u3001r.matsumoto\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306fSpringBoot\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u66f8\u3044\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u5165\u529b\u5024\u30c1\u30a7\u30c3\u30af\u306a\u3069\u3067\u5fc5\u8981\u4e0d\u53ef\u6b20\u306a\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u304c\u3001\u4e00\u8a00\u306b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3068\u8a00\u3063\u3066\u3082HTML\u306einput\u30bf\u30b0\u306brequired\u3092\u3064\u3051\u305f\u308a\u3001<br \/>\nJavaScript\u3067\u5165\u529b\u5024\u30c1\u30a7\u30c3\u30af\u3057\u305f\u308a\u3068\u8272\u3005\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>SpringBoot\u306b\u306f\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u5074\u3067\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u304b\u3051\u3066\u304f\u308c\u308b\u6a5f\u80fd\u304c\u3042\u308b\u306e\u3067\u4eca\u56de\u306f\u305d\u308c\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h4>SpringBoot\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u66f8\u304d\u65b9<\/h4>\n<p>SpringBoot\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u66f8\u304d\u65b9\u3067\u3059\u304c\u3001\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u3001Entity\u30af\u30e9\u30b9\u306e\u30ab\u30e9\u30e0\u306b\u5bfe\u3057\u3066\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u3051\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u79c1\u304c\u66f8\u3044\u305fSpring\u306eEntity\u30af\u30e9\u30b9\u306e\u30bd\u30fc\u30b9\u3067\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true\">@Entity\r\n@Table(name=\"employee\")\r\npublic class Employee{\r\n    @Id\r\n    @Column(name=\"id\")\r\n    @GeneratedValue(strategy=GenerationType.IDENTITY)\r\n    private Integer id;\r\n\r\n    @NotEmpty(message = \"\u6c0f\u540d\u304c\u7a7a\u767d\u3067\u3059\u3002\")\r\n    @Column(name = \"name\")\r\n    private String name;\r\n\r\n    @Email(message = \"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u4e0d\u6b63\u3067\u3059\u3002\")\r\n    @NotEmpty(message = \"\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u7a7a\u767d\u3067\u3059\u3002\")\r\n    @Column(name = \"mail\")\r\n    private String mail;\r\n\uff5d<\/pre>\n<p>\u898b\u3066\u3082\u3089\u3048\u3070\u5206\u304b\u308b\u3088\u3046\u306b@Column\u306e\u4ed8\u3044\u3066\u3042\u308b\u30ab\u30e9\u30e0\u306b@Email\u3084@NotEmpty\u3067\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u3051\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>message\u306f\u8a2d\u5b9a\u3057\u306a\u3051\u308c\u3070\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u5410\u304d\u51fa\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>SpringBoot\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306f\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u3051\u308b\u3060\u3051\u3067\u8a2d\u5b9a\u3067\u304d\u3066Thymeleaf\u306a\u3069\u3067\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u3051\u53d6\u3063\u305f\u308a\u3067\u304d\u3066\u3068\u3066\u3082\u4fbf\u5229\u306a\u306e\u3067Spring\u3092\u4f7f\u3046\u306a\u3089\u662f\u975e\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7686\u3055\u3093\u3053\u3093\u306b\u3061\u306f\u3001r.matsumoto\u3067\u3059\u3002 \u4eca\u56de\u306fSpringBoot\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u66f8\u3044\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002 \u5165\u529b\u5024\u30c1\u30a7\u30c3\u30af\u306a\u3069\u3067\u5fc5\u8981\u4e0d\u53ef\u6b20\u306a\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u304c\u3001\u4e00\u8a00\u306b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3068\u8a00\u3063\u3066\u3082HTML\u306ei&#8230;<a class=\"read-more-link button\" href=\"https:\/\/idealive.jp\/blog\/2019\/08\/07\/springboot%e3%81%ae%e3%83%90%e3%83%aa%e3%83%87%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3\/\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":10,"featured_media":1663,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-1742","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/posts\/1742"}],"collection":[{"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/comments?post=1742"}],"version-history":[{"count":4,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/posts\/1742\/revisions"}],"predecessor-version":[{"id":1746,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/posts\/1742\/revisions\/1746"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/media\/1663"}],"wp:attachment":[{"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/media?parent=1742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/categories?post=1742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/tags?post=1742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}