diff options
author | 2022-12-08 10:37:23 +0300 | |
---|---|---|
committer | 2022-12-08 10:37:23 +0300 | |
commit | ccdb57fa3932785811faf9dd42d5998e4f1ea14b (patch) | |
tree | ceb012324e7374e758e9fbfab8836ba3ae1164b9 /src/test/java/com/juick/config/DataSourceAutoConfiguration.java | |
parent | cfc787394a506459c71b4a124149e5d6de7690a8 (diff) |
Spring beans should not be public
Diffstat (limited to 'src/test/java/com/juick/config/DataSourceAutoConfiguration.java')
-rw-r--r-- | src/test/java/com/juick/config/DataSourceAutoConfiguration.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/java/com/juick/config/DataSourceAutoConfiguration.java b/src/test/java/com/juick/config/DataSourceAutoConfiguration.java index b30de7fc..1b88d577 100644 --- a/src/test/java/com/juick/config/DataSourceAutoConfiguration.java +++ b/src/test/java/com/juick/config/DataSourceAutoConfiguration.java @@ -33,12 +33,13 @@ import javax.sql.DataSource; public class DataSourceAutoConfiguration { @Bean - public MariaDB4jSpringService mariaDB4j() { + MariaDB4jSpringService mariaDB4j() { return new MariaDB4jSpringService(); } + @Bean @DependsOn("mariaDB4j") - public DataSource dataSource(DataSourceProperties dataSourceProperties) { + DataSource dataSource(DataSourceProperties dataSourceProperties) { return DataSourceBuilder.create() .driverClassName(dataSourceProperties.getDriverClassName()) .url(dataSourceProperties.getUrl()) @@ -46,4 +47,4 @@ public class DataSourceAutoConfiguration { .password(dataSourceProperties.getPassword()) .build(); } -}
\ No newline at end of file +} |