diff --git a/application/sample-service/src/main/java/sample_service/repository/AppRepository.java b/application/sample-service/src/main/java/sample_service/repository/AppRepository.java index b71c737..ba8e9ef 100644 --- a/application/sample-service/src/main/java/sample_service/repository/AppRepository.java +++ b/application/sample-service/src/main/java/sample_service/repository/AppRepository.java @@ -10,9 +10,12 @@ @Repository public class AppRepository { - @Autowired private JdbcTemplate jdbcTemplate; + @Autowired + AppRepository(JdbcTemplate template) { + jdbcTemplate = template; + } // private SimpleJdbcCall simpleJdbcCall; diff --git a/application/sample-service/src/main/java/sample_service/service/AppService.java b/application/sample-service/src/main/java/sample_service/service/AppService.java index c6e32b7..3560b4f 100644 --- a/application/sample-service/src/main/java/sample_service/service/AppService.java +++ b/application/sample-service/src/main/java/sample_service/service/AppService.java @@ -25,9 +25,7 @@ public String greetService( String name ) { return repository.greetRepository(name); } - public void saveUser(AppModelDTO model) { - - } + public void saveUser(AppModelDTO model) { } /* public ResponseEntity download(String url, String blobName) { return fileUtil.downloadBlob(url, blobName); diff --git a/application/sample-service/src/main/resources/application.yml b/application/sample-service/src/main/resources/application.yml index c2d33dc..9d8d688 100644 --- a/application/sample-service/src/main/resources/application.yml +++ b/application/sample-service/src/main/resources/application.yml @@ -6,7 +6,7 @@ spring: type: com.zaxxer.hikari.HikariDataSource driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver username: sa - password: N@d33^^kh9719 + password: url: jdbc:sqlserver://localhost:1433;DatabaseName=code_with_nk_db autoconfigure: diff --git a/docs/_config.yml b/docs/_config.yml index c419263..fc24e7a 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1 +1 @@ -theme: jekyll-theme-cayman \ No newline at end of file +theme: jekyll-theme-hacker \ No newline at end of file diff --git a/pom.xml b/pom.xml index 8a0326b..63a8b52 100644 --- a/pom.xml +++ b/pom.xml @@ -123,6 +123,10 @@ org.springframework.boot spring-boot-configuration-processor + + org.springframework.boot + spring-boot-starter-actuator +