Guest User

Untitled

a guest
Feb 15th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. @PostConstruct
  2. void started() {
  3. TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
  4. }
  5.  
  6. datasource.config.url=jdbc:h2:mem:AZ;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=ORACLE;
  7. datasource.config.username=sa
  8. datasource.config.password=
  9. datasource.config.driver-class-name=org.h2.Driver
  10.  
  11. @Select("Select CURRENT_TIMESTAMP")
  12. String selectCurrentTimestamp();
  13.  
  14. public static void main(String[] args) {
  15. TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
  16. SpringApplication.run(Application.class, args);
  17. }
Add Comment
Please, Sign In to add comment