Merge pull request #7304 from amit2103/BAEL-11603
[BAEL-11603] - Fixed tests in spring-mvc-java module
This commit is contained in:
commit
952c78e207
|
@ -144,6 +144,11 @@
|
||||||
<artifactId>spring-messaging</artifactId>
|
<artifactId>spring-messaging</artifactId>
|
||||||
<version>${spring.version}</version>
|
<version>${spring.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.glassfish</groupId>
|
||||||
|
<artifactId>javax.el</artifactId>
|
||||||
|
<version>${javax.el.version}</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@ -290,7 +295,7 @@
|
||||||
<!-- excel -->
|
<!-- excel -->
|
||||||
<poi.version>3.16-beta1</poi.version>
|
<poi.version>3.16-beta1</poi.version>
|
||||||
|
|
||||||
<javax.el.version>3.0.1-b06</javax.el.version>
|
<javax.el.version>3.0.1-b09</javax.el.version>
|
||||||
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package com.baeldung.web.controller;
|
package com.baeldung.web.controller.message;
|
||||||
|
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
|
@ -15,7 +15,7 @@ import org.thymeleaf.templateresolver.ServletContextTemplateResolver;
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@EnableWebMvc
|
@EnableWebMvc
|
||||||
@ComponentScan(basePackages = { "com.baeldung.web.controller" })
|
@ComponentScan(basePackages = { "com.baeldung.web.controller.message" })
|
||||||
public class TestConfig implements WebMvcConfigurer {
|
public class TestConfig implements WebMvcConfigurer {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -44,5 +44,4 @@ public class TestConfig implements WebMvcConfigurer {
|
||||||
templateEngine.setTemplateResolver(templateResolver());
|
templateEngine.setTemplateResolver(templateResolver());
|
||||||
return templateEngine;
|
return templateEngine;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue