spring-boot
spring boot で jpa をつかって entity がエラーになるとき Invocation of init method failed; nested exception is org.hibernate.AnnotationException: No identifier specified for entity とかってメッセージがでる。 原因は import すべき @Id がまち…
https://start.spring.io/ で 1.4.0 つかえるようになったよ build.gradle: buildscript { ext { springBootVersion = '1.4.0.RELEASE' } repositories { mavenCentral() maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring…
spring boot で thymeleaf つかうと cache されてめんどいじゃないですか spring.thymeleaf.cache=false って、application.properties にかくと確か、キャッシュされないとか。(どういう仕組だ?) で、やってみてもうまくいかない。 どうも、eclipse とか…
spring-boot でセッションを扱うには簡単な方法だと アノテーションをクラスにつけて @SessionAttributes(value = "contactForm") ModelAttribute でそれを設定する @ModelAttribute("contactForm") ContactForm contactForm() { return new ContactForm(); …