File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
java/az/mm/developerjobs/config Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 11
22package az .mm .developerjobs .config ;
33
4- import javax .sql .DataSource ;
5- import org .springframework .boot .autoconfigure .jdbc .DataSourceBuilder ;
64import org .springframework .context .annotation .Bean ;
75import org .springframework .context .annotation .Configuration ;
86import org .springframework .context .support .ReloadableResourceBundleMessageSource ;
@@ -22,11 +20,17 @@ public ReloadableResourceBundleMessageSource messageSource() {
2220 return messageSource ;
2321 }
2422
23+
24+ /*
25+ //This config is added into application.properties file
26+
2527 @Bean
2628 public DataSource dataSource() {
2729 DataSourceBuilder dataSourceBuilder = DataSourceBuilder.create();
2830 dataSourceBuilder.driverClassName("org.sqlite.JDBC");
2931 dataSourceBuilder.url("jdbc:sqlite:D:\\developer_jobs.sqlite");
3032 return dataSourceBuilder.build();
3133 }
34+ */
35+
3236}
Original file line number Diff line number Diff line change 11spring.mvc.view.prefix : /WEB-INF/jsp/
22spring.mvc.view.suffix : .jsp
33
4- # MAIL PROPERTIES#
4+ # MAIL PROPERTIES #
55spring.mail.host = smtp.gmail.com
66spring.mail.port = 587
77spring.mail.username = your-mail@gmail.com
88spring.mail.password = password
99spring.mail.properties.mail.smtp.auth = true
1010spring.mail.properties.mail.smtp.starttls.enable = true
1111
12+
13+ # DB PROPERTIES #
14+ spring.datasource.url = jdbc:sqlite:D:\\ developer_jobs.sqlite
15+ spring.datasource.driver-class-name = org.sqlite.JDBC
1216# spring.jpa.show-sql=true
1317# spring.jpa.properties.hibernate.format_sql=true
You can’t perform that action at this time.
0 commit comments