最新回答 / 慕粉阳洋
不需要用,这样就行,@RequestMapping("/delete")public String deleteTest(Integer id ){ list.delete(id); return null;}@RequestMapping("/addTest")public Test insertTest(Integer id ,String name){ Test test=new Test(); test.setId(id); test.setName(name);...
2017-07-04
我在配置文件中加了<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
运行就报错了
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
运行就报错了
2017-07-02