fix spring-boot module (#2422)
* fix spring config * fix spring config * fix spring config * minor fix * fix spring-boot module
This commit is contained in:
@@ -9,7 +9,7 @@ import org.springframework.context.annotation.PropertySource;
|
||||
import org.springframework.core.env.ConfigurableEnvironment;
|
||||
|
||||
@Configuration
|
||||
@ComponentScan(basePackages = { "com.baeldung.*" })
|
||||
@ComponentScan(basePackages = { "com.baeldung.servlets.*" })
|
||||
@PropertySource("classpath:custom.properties") public class PropertySourcesLoader {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(PropertySourcesLoader.class);
|
||||
|
||||
+2
-2
@@ -10,11 +10,11 @@ import com.baeldung.autoconfiguration.MySQLAutoconfiguration;
|
||||
|
||||
@SpringBootApplication(exclude=MySQLAutoconfiguration.class)
|
||||
@ComponentScan(basePackages="com.baeldung.utils")
|
||||
public class Application {
|
||||
public class UtilsApplication {
|
||||
|
||||
@RolesAllowed("*")
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(Application.class, args);
|
||||
SpringApplication.run(UtilsApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user