最贊回答 / 慕碼人3035288
<dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>1.3.175</version> </dependency>
2017-09-16
最新回答 / WayLeung
一:在dao中Query注解 通過sql語句public interface TaskDao extends JpaRepository<Task, Long> {
? @Query("select t from Task t where t.taskName = ? and t.createTime = ?")
?Task findByTaskName(String taskName, Date createTime);
}二:在dao中新增方法或者重寫jparepository里面的方...
2017-09-15
cupSize取不到的同學改成@Value("${server.cupSize}")就可以了,不知道老師的沒寫為什么可以取到,自己的就取不到
2017-09-14
最贊回答 / qq_鮮農哥_0
還是不行,Re-run spring configuration annotation processor to update generated metadata我版本是 spring boot 1.5.9
2017-09-13