File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed
java/lk/ijse/dep/note/config Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 8484 <orderEntry type =" library" name =" Maven: com.google.protobuf:protobuf-java:3.19.4" level =" project" />
8585 <orderEntry type =" library" name =" Maven: com.zaxxer:HikariCP:4.0.3" level =" project" />
8686 <orderEntry type =" library" name =" Maven: org.slf4j:slf4j-api:1.7.30" level =" project" />
87- <orderEntry type =" library" name =" Maven: org.yaml:snakeyaml:1.30" level =" project" />
8887 </component >
8988</module >
Original file line number Diff line number Diff line change 1919import javax .xml .crypto .Data ;
2020
2121@ Configuration
22- @ PropertySource ("classpath:application.yml" )
2322@ EnableTransactionManagement
2423public class JpaConfig {
2524 @ Autowired
@@ -33,6 +32,7 @@ public LocalContainerEntityManagerFactoryBean entityManagerFactory(DataSource ds
3332 return lcmfb ;
3433 }
3534
35+ @ Bean
3636 public JpaVendorAdapter jpaVendorAdapter (){
3737 HibernateJpaVendorAdapter jpaVendorAdapter = new HibernateJpaVendorAdapter ();
3838 jpaVendorAdapter .setShowSql (env .getProperty ("jpa.show-sql" ,Boolean .class ,false ));
Original file line number Diff line number Diff line change 11jpa :
2- show-sql:true
3- generate-ddl:true
4- dialect:org.hibernate.dialect.MySQL8Dialect
2+ show-sql : true
3+ generate-ddl : true
4+ dialect : org.hibernate.dialect.MySQL8Dialect
55
66hikari :
7- jdbc-url:jdbc:mysql//localhost:3306/dep8_notes?createDatabaseIfNotExist=true
8- username:root
9- password:12345678
10- driver-classname:com.mysql.cj.jdbc.Driver
11- max-pool-size:10
7+ jdbc-url : jdbc:mysql: //localhost:3306/dep8_notes?createDatabaseIfNotExist=true
8+ username : root
9+ password : 12345678
10+ driver-classname : com.mysql.cj.jdbc.Driver
11+ max-pool-size : 10
You can’t perform that action at this time.
0 commit comments