最新回答 / BeanFact0ry
@Componentpublic interface GirlRepository extends JpaRepository<Girl,Integer>{ public List<Girl> findByAge(Integer age);}
2017-04-19
最赞回答 / 未卜先知
<!-- https://mvnrepository.com/artifact/javax.persistence/persistence-api --><dependency> <groupId>javax.persistence</groupId> <artifactId>persistence-api</artifactId> <version>1.0</version></dep...
2017-04-17
已采纳回答 / SevenSONGOKU
可能maven本地仓库没有download jar包,先检查一下pom.xml中这几个dependency没有敲错,然后用mvn compile跑一下,然后update一下maven工程试试
2017-04-16
最新回答 / ningzhaolu
ctrl+space 会是切换输入法,最好在intellij中修改一下 file-setting-keymap-Main menu-code-completion-右键删掉Cyclic Expand Word的快捷键--添加Basic的快捷键为Alt+/
2017-04-14
最赞回答 / 洋妞honey
只需要在pom.xml添加一个依赖,如下:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> <optional>true</optional></dependency>
2017-04-13
最新回答 / 爱娜forever
pom.xml 里 没加依赖吧<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency>
2017-04-12
最赞回答 / 慕盖茨8218757
@Value("${content}") private String content;改成 @Value("${server.content}") private String content;
2017-04-11