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:
parent
127dd7323d
commit
dc3589a7a0
|
@ -52,7 +52,7 @@
|
|||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<!-- <dependency>
|
||||
<groupId>org.apache.tomcat.embed</groupId>
|
||||
<artifactId>tomcat-embed-core</artifactId>
|
||||
<version>${tomcat.version}</version>
|
||||
|
@ -62,7 +62,7 @@
|
|||
<groupId>org.apache.tomcat.embed</groupId>
|
||||
<artifactId>tomcat-embed-jasper</artifactId>
|
||||
<version>${tomcat.version}</version>
|
||||
</dependency>
|
||||
</dependency> -->
|
||||
|
||||
<dependency>
|
||||
<groupId>io.dropwizard.metrics</groupId>
|
||||
|
@ -253,8 +253,8 @@
|
|||
|
||||
<properties>
|
||||
<!-- The main class to start by executing java -jar -->
|
||||
<start-class>org.baeldung.boot.DemoApplication</start-class>
|
||||
<spring.version>4.3.4.RELEASE</spring.version>
|
||||
<!-- <start-class>org.baeldung.boot.DemoApplication</start-class>
|
||||
--> <spring.version>4.3.4.RELEASE</spring.version>
|
||||
<git-commit-id-plugin.version>2.2.1</git-commit-id-plugin.version>
|
||||
<jquery.version>3.1.1</jquery.version>
|
||||
<bootstrap.version>3.3.7-1</bootstrap.version>
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
|
@ -6,7 +6,7 @@
|
|||
http://www.springframework.org/schema/context
|
||||
http://www.springframework.org/schema/context/spring-context-4.3.xsd">
|
||||
|
||||
<context:component-scan base-package="com.baeldung"/>
|
||||
<context:component-scan base-package="com.baeldung.servlets"/>
|
||||
|
||||
<bean class="com.baeldung.configuration.WebAppInitializer"/>
|
||||
<bean class="com.baeldung.servlets.configuration.WebAppInitializer"/>
|
||||
</beans>
|
|
@ -7,7 +7,7 @@
|
|||
http://www.springframework.org/schema/context
|
||||
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
|
||||
|
||||
<context:component-scan base-package="com.baeldung"/>
|
||||
<context:component-scan base-package="com.baeldung.servlets"/>
|
||||
|
||||
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
||||
<property name="prefix" value="/WEB-INF/jsp/"/>
|
||||
|
|
Loading…
Reference in New Issue