http://www.xianlaiwan.cn/learn/767: 如果是用IDEA+maven的話,換國內的源,然后run,不然會提示“Exception in thread "main" java.lang.NoClassDefFoundError”是jar包沒有下載成功。例如用IDEA自帶的maven的時候,改一下maven源的配置:JetBrains\IntelliJ IDEA 2017.2.5\plugins\maven\lib\maven3\conf\settings.xml:加上阿里云的源。http://www.cnblogs.com/phpdragon/p/7216626.html
2017-11-04
org.springframework.http.converter.HttpMessageNotWritableException
如果報這個錯,可以在girl類上邊加一個注解
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","operations","roles","menus"})
其中hibernateLazyInitializer,handler必須添加!
如果報這個錯,可以在girl類上邊加一個注解
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","operations","roles","menus"})
其中hibernateLazyInitializer,handler必須添加!
2017-11-04
最新回答 / murdonson
這樣弄jpa: database-platform: org.hibernate.dialect.MySQL5Dialect hibernate: ? ?ddl-auto: create show-sql: true
2017-11-03
最新回答 / 朱玉洪
native的功能是:由數據庫從identity,sequence和hilo中選取一個生成器來生成ID。這樣就需要主鍵設置成自增長的,一定要小心采用的是Mysql數據庫,但在執行插入的時候報錯:The database returned no natively generated identity value最后確認原因是數據庫的表結構中關于logid,沒有設置auto increment。另外,對于ID你是否是這樣設置的呢@Id@GeneratedValueprivate Integer id;
2017-11-02