[JAVA-961] Standardize packages in spring-security-modules: spring-security-rest-custom (finalized)
This commit is contained in:
parent
06347b6f1f
commit
15ead38004
@ -30,7 +30,7 @@ public class MainWebAppInitializer implements WebApplicationInitializer {
|
||||
|
||||
// Create the 'root' Spring application context
|
||||
final AnnotationConfigWebApplicationContext root = new AnnotationConfigWebApplicationContext();
|
||||
root.scan("org.baeldung.config.parent");
|
||||
root.scan("com.baeldung.config.parent");
|
||||
// root.getEnvironment().setDefaultProfiles("embedded");
|
||||
|
||||
// Manages the lifecycle of the root application context
|
||||
@ -38,7 +38,7 @@ public class MainWebAppInitializer implements WebApplicationInitializer {
|
||||
|
||||
// Handles requests into the application
|
||||
final AnnotationConfigWebApplicationContext childWebApplicationContext = new AnnotationConfigWebApplicationContext();
|
||||
childWebApplicationContext.scan("org.baeldung.config.child");
|
||||
childWebApplicationContext.scan("com.baeldung.config.child");
|
||||
final ServletRegistration.Dynamic appServlet = sc.addServlet("api", new DispatcherServlet(childWebApplicationContext));
|
||||
appServlet.setLoadOnStartup(1);
|
||||
final Set<String> mappingConflicts = appServlet.addMapping("/");
|
||||
|
@ -23,7 +23,7 @@ import org.thymeleaf.templateresolver.ITemplateResolver;
|
||||
|
||||
@Configuration
|
||||
@EnableWebMvc
|
||||
@ComponentScan("org.baeldung.web")
|
||||
@ComponentScan("com.baeldung.web")
|
||||
//@ImportResource({ "classpath:prop.xml" })
|
||||
//@PropertySource("classpath:foo.properties")
|
||||
public class WebConfig implements WebMvcConfigurer {
|
||||
|
@ -12,7 +12,7 @@ import org.springframework.security.config.annotation.web.configuration.WebSecur
|
||||
@Configuration
|
||||
//@ImportResource({ "classpath:webSecurityConfig.xml" })
|
||||
@EnableWebSecurity
|
||||
@ComponentScan("org.baeldung.security")
|
||||
@ComponentScan("com.baeldung.security")
|
||||
public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
|
||||
@Autowired
|
||||
|
@ -7,7 +7,7 @@ import org.springframework.context.annotation.PropertySource;
|
||||
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
||||
|
||||
@Configuration
|
||||
@ComponentScan("org.baeldung.service")
|
||||
@ComponentScan("com.baeldung.service")
|
||||
// @ImportResource({ "classpath:prop.xml" })
|
||||
@PropertySource("classpath:foo.properties")
|
||||
public class ServiceConfig {
|
||||
|
@ -16,7 +16,7 @@
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>org.baeldung.config.parent</param-value>
|
||||
<param-value>com.baeldung.config.parent</param-value>
|
||||
</context-param>
|
||||
|
||||
<listener>
|
||||
@ -29,7 +29,7 @@
|
||||
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
||||
<!-- <init-param> -->
|
||||
<!-- <param-name>contextConfigLocation</param-name> -->
|
||||
<!-- <param-value>org.baeldung.config.child</param-value> -->
|
||||
<!-- <param-value>com.baeldung.config.child</param-value> -->
|
||||
<!-- </init-param> -->
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
|
Loading…
x
Reference in New Issue
Block a user