Guest User

Untitled

a guest
Nov 26th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. insert into `user`(username, password) values('user1', '123'), ('user2', '234')...
  2.  
  3. server:
  4. port: 8080
  5. spring:
  6. datasource:
  7. url: jdbc:mysql://localhost:3306/time_test?rewriteBatchedStatements=true
  8. username: root
  9. password:
  10. jpa:
  11. show-sql: false
  12. hibernate:
  13. ddl-auto: validate
  14. database-platform: org.hibernate.dialect.MySQL5Dialect
  15. properties:
  16. hibernate.jdbc.batch_size: 50
  17. hibernate.order_inserts: true
  18. hibernate.order_updates: true
  19.  
  20. insert into `user`(username, password) values('user1', '123');
  21. insert into `user`(username, password) values('user2', '123');
  22.  
  23. @Entity
  24. @Data
  25. @Builder
  26. public class User {
  27. @Id
  28. @GeneratedValue(strategy = GenerationType.AUTO)
  29. private Long id;
  30. private String username;
  31. private String password;
  32. }
Add Comment
Please, Sign In to add comment