加入JPA依賴啟動就報錯java.lang.ClassNotFoundException: org.hibernate.proxy.HibernateProxy
<dependency> ?
<groupId>org.springframework.boot</groupId> ?
<artifactId>spring-boot-starter-data-jpa</artifactId> ?
</dependency>?
<dependency> ?
<groupId>mysql</groupId> ?
<artifactId>mysql-connector-java</artifactId> ?
</dependency>?
2018-03-05
在@SpringBootApplication中排除其注入
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
2017-12-05
你能不能把報錯的東西詳細一下