最贊回答 / NullMoneyException
單純的count 可以用 Intage 接收? 比如要查 一篇博客有幾條點贊 我沒有在博客類里面添加 點贊類的一對多? 只是想單純的查博客信息還有幾條點贊
2018-01-08
最贊回答 / 慕容77
/** * * @param student 待添加的學(xué)生 */public void save(Student student) {這樣??你寫好函數(shù)名字 ?在上面/** 然后回車就有自動添加的方法注釋了 ?自帶你寫的參數(shù)注釋
2018-01-02
已采納回答 / qq_值得等待的煙火_0
比如:對于name屬性@Column(length = 20)public void setName(String name) { ? ?this.name = name;}
2017-12-21
最新回答 / 隨塵軟件
你要添加事務(wù)注解:@Transactional????@Modifying????@Query(value="insert into jpa_person(id,name,gender,birth) values(?,?,?,?)",nativeQuery=true)????public int insertPerson2(Integer id,String name,Integer gender,Date birth);
2017-12-16
已采納回答 / 嘿不溜秋
這個錯誤的提示很明顯了,你的spring的bean配置文件中沒有id為transactionManager的bean但,或者是引用到它的地方名字可能沒有和它的id(bean的id)一致
2017-11-19
最新回答 / 小明同學(xué)愛思考
spring boot 官方文檔,如何配置兩個數(shù)據(jù)源?https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#howto-two-datasources
2017-10-24
最新回答 / 永遠(yuǎn)在成長
https://docs.spring.io/spring-data/jpa/docs/1.11.3.RELEASE/reference/html/#repositories.custom-behaviour-for-all-repositories可以參考一下
2017-10-22