Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <parent>
  2. <groupId>org.springframework.boot</groupId>
  3. <artifactId>spring-boot-starter-parent</artifactId>
  4. <version>2.0.0.RELEASE</version>
  5. <relativePath />
  6. </parent>
  7.  
  8. OracleDataSource dataSource = new OracleDataSource();
  9. Properties p = new Properties();
  10. p.put("useUnicode", "true;");
  11. p.put("characterEncoding", "UTF-8;");
  12. dataSource.setConnectionProperties(p);
  13. dataSource.setUser("user");
  14. dataSource.setPassword("pass");
  15. dataSource.setURL("jdbc:oracle:thin:@0.0.0.0:00:x");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement