SpringBoot / Data出错

时间:2017-10-24 10:55:53

标签: spring-boot spring-data

我正在尝试使用Spring Boot在我的数据库中创建一个表,但我遇到了这个问题:

ConsoleError.jpg

这里是 Application.properties:

spring.datasource.url=jdbc:mysql://localhost:3306/test?useSSL=false
spring.datasource.username=root
spring.datasource.password=
spring.datasource.driverClassName = com.mysql.jdbc.Driver
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
spring.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect   

和我正在使用的班级:

@Entity
public class Personnel{
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private int id;
    @Column(name="NOM")
    private String nom;
    public int getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getNom() {
        return nom;
    }
    public void setNom(String nom) {
        this.nom = nom;
    }
    public Personnel(int id, String nom) {
        super();
        this.id = id;
        this.nom = nom;
    }
    public Personnel() {
        super();
    }
}

pom.xml(依赖项):

Pom.xml

有人可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

无法找到具有hibernate配置的属性文件