|
@@ -1,29 +1,29 @@
|
|
|
-package com.pavis.ai.app.judicial.common.config;
|
|
|
-
|
|
|
-import com.pavis.ai.app.judicial.common.config.properties.CommonProperties;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
|
|
-import org.springframework.context.annotation.Bean;
|
|
|
-import org.springframework.context.annotation.Configuration;
|
|
|
-import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService;
|
|
|
-import org.springframework.web.client.RestTemplate;
|
|
|
-
|
|
|
-import javax.sql.DataSource;
|
|
|
-
|
|
|
-@Configuration
|
|
|
-@EnableConfigurationProperties({CommonProperties.class})
|
|
|
-public class JudicialConfig {
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private DataSource dataSource;
|
|
|
-
|
|
|
- @Bean
|
|
|
- public JdbcClientDetailsService jdbcClientDetailsService() {
|
|
|
- return new JdbcClientDetailsService(dataSource);
|
|
|
- }
|
|
|
-
|
|
|
- @Bean
|
|
|
- public RestTemplate restTemplate() {
|
|
|
- return new RestTemplate();
|
|
|
- }
|
|
|
-}
|
|
|
+// package com.pavis.ai.app.judicial.common.config;
|
|
|
+//
|
|
|
+// import com.pavis.ai.app.judicial.common.config.properties.CommonProperties;
|
|
|
+// import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+// import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
|
|
+// import org.springframework.context.annotation.Bean;
|
|
|
+// import org.springframework.context.annotation.Configuration;
|
|
|
+// import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService;
|
|
|
+// import org.springframework.web.client.RestTemplate;
|
|
|
+//
|
|
|
+// import javax.sql.DataSource;
|
|
|
+//
|
|
|
+// @Configuration
|
|
|
+// @EnableConfigurationProperties({CommonProperties.class})
|
|
|
+// public class JudicialConfig {
|
|
|
+//
|
|
|
+// @Autowired
|
|
|
+// private DataSource dataSource;
|
|
|
+//
|
|
|
+// @Bean
|
|
|
+// public JdbcClientDetailsService jdbcClientDetailsService() {
|
|
|
+// return new JdbcClientDetailsService(dataSource);
|
|
|
+// }
|
|
|
+//
|
|
|
+// @Bean
|
|
|
+// public RestTemplate restTemplate() {
|
|
|
+// return new RestTemplate();
|
|
|
+// }
|
|
|
+// }
|