Spring|Spring Data JPA

【Spring|Spring Data JPA】application.yml

server: port: 9090 tomcat: uri-encoding: UTF-8 spring: #datasource: #url: jdbc:mysql://localhost:3306/lktspace?characterEncoding=UTF-8&useSSL=false #username: root #password: 123456 #driver-class-name: com.mysql.jdbc.Driver #jpa: #database: MYSQL #show-sql: true #hibernate: #ddl-auto: update #naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy #properties: #hibernate: #dialect: org.hibernate.dialect.MySQL5Dialect datasource: url: jdbc:h2:file:~/lktSpaceDemokitDB username: sa password: driver-class-name: org.h2.Driver h2: console: enabled: true

Read this:
http://docs.spring.io/spring-data/jpa/docs/current/reference/html/

    推荐阅读