let's learn java language

I learning java language.

spring-boot

Invocation of init method failed; nested exception is org.hibernate.AnnotationException: No identifier specified for entity

spring boot で jpa をつかって entity がエラーになるとき Invocation of init method failed; nested exception is org.hibernate.AnnotationException: No identifier specified for entity とかってメッセージがでる。 原因は import すべき @Id がまち…

spring boot 1.4.0.RELEASE がでたよ

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…

thymeleaf の cache = false

spring boot で thymeleaf つかうと cache されてめんどいじゃないですか spring.thymeleaf.cache=false って、application.properties にかくと確か、キャッシュされないとか。(どういう仕組だ?) で、やってみてもうまくいかない。 どうも、eclipse とか…

spring boot + session ( in memory )

spring-boot でセッションを扱うには簡単な方法だと アノテーションをクラスにつけて @SessionAttributes(value = "contactForm") ModelAttribute でそれを設定する @ModelAttribute("contactForm") ContactForm contactForm() { return new ContactForm(); …