Skip to content

Commit 0c96e90

Browse files
authored
Merge pull request eugenp#5871 from eugenp/BAEL-9710-v2
fix package name, start class
2 parents 18f26db + b51ae5b commit 0c96e90

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

spring-rest/pom.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,6 @@
183183
<plugin>
184184
<groupId>org.springframework.boot</groupId>
185185
<artifactId>spring-boot-maven-plugin</artifactId>
186-
<configuration>
187-
<skip>true</skip>
188-
</configuration>
189186
</plugin>
190187
<plugin>
191188
<groupId>org.apache.maven.plugins</groupId>
@@ -300,6 +297,7 @@
300297
<json.path.version>2.2.0</json.path.version>
301298
<pact.version>3.5.11</pact.version>
302299
<rest-assured.version>3.1.0</rest-assured.version>
300+
<start-class>com.baeldung.sampleapp.config.MainApplication</start-class>
303301
</properties>
304302

305303
</project>

spring-rest/src/main/webapp/WEB-INF/api-servlet.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd"
77
>
88

9-
<context:component-scan base-package="org.baeldung.web" />
9+
<context:component-scan base-package="com.baeldung.sampleapp.web" />
1010

1111
<mvc:annotation-driven content-negotiation-manager="contentNegotiationManager" >
1212
<mvc:message-converters register-defaults="true">

spring-rest/src/main/webapp/WEB-INF/web.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</context-param>
1717
<context-param>
1818
<param-name>contextConfigLocation</param-name>
19-
<param-value>org.baeldung.config</param-value>
19+
<param-value>com.baeldung.sampleapp.config</param-value>
2020
</context-param>
2121

2222
<!-- <listener>

spring-rest/src/test/java/com/baeldung/web/controller/mediatypes/TestConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
@Configuration
8-
@ComponentScan({ "org.baeldung.web" })
8+
@ComponentScan({ "com.baeldung.web" })
99
public class TestConfig {
1010

1111
}

0 commit comments

Comments
 (0)