File tree Expand file tree Collapse file tree
graalpy/graalpy-spring-boot-guide
src/test/java/com/example/demo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ repositories {
2929
3030dependencies {
3131 implementation ' org.springframework.boot:spring-boot-starter-thymeleaf'
32- implementation ' org.springframework.boot:spring-boot-starter-web '
33- testImplementation ' org.springframework.boot:spring-boot-starter-test'
32+ implementation ' org.springframework.boot:spring-boot-starter-webmvc '
33+ testImplementation ' org.springframework.boot:spring-boot-starter-webmvc- test'
3434 testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
3535}
3636
Original file line number Diff line number Diff line change 2626 </dependency >
2727 <dependency >
2828 <groupId >org.springframework.boot</groupId >
29- <artifactId >spring-boot-starter-web </artifactId >
29+ <artifactId >spring-boot-starter-webmvc </artifactId >
3030 </dependency >
3131
3232 <dependency >
4343
4444 <dependency >
4545 <groupId >org.springframework.boot</groupId >
46- <artifactId >spring-boot-starter-test</artifactId >
46+ <artifactId >spring-boot-starter-webmvc- test</artifactId >
4747 <scope >test</scope >
4848 </dependency >
4949 </dependencies >
Original file line number Diff line number Diff line change 88
99import org .junit .jupiter .api .Test ;
1010import org .springframework .beans .factory .annotation .Autowired ;
11- import org .springframework .boot .test .autoconfigure .web .servlet .AutoConfigureMockMvc ;
1211import org .springframework .boot .test .context .SpringBootTest ;
12+ import org .springframework .boot .webmvc .test .autoconfigure .AutoConfigureMockMvc ;
1313import org .springframework .test .annotation .DirtiesContext ;
1414import org .springframework .test .web .servlet .MockMvc ;
1515
You can’t perform that action at this time.
0 commit comments