File tree Expand file tree Collapse file tree 16 files changed +49
-72
lines changed
doma-spring-boot-autoconfigure
main/java/org/seasar/doma/boot/autoconfigure
test/java/org/seasar/doma/boot/autoconfigure
doma-spring-boot-sample-docker-compose
doma-spring-boot-sample-entity-listener
src/test/java/org/seasar/doma/boot/sample
doma-spring-boot-sample-event-handler
src/test/java/org/seasar/doma/boot/sample
doma-spring-boot-sample-simple
src/test/java/org/seasar/doma/boot/sample
doma-spring-boot-sample-testcontainers
src/test/java/org/seasar/doma/boot/sample
doma-spring-boot-sample-two-datasource/src/main/java/org/seasar/doma/boot/sample/configuration
doma-spring-boot-sample-unified-criteria Expand file tree Collapse file tree 16 files changed +49
-72
lines changed Original file line number Diff line number Diff line change 5151 # OSS support versions
5252 # https://spring.io/projects/spring-boot#support
5353 # and milestone version of the next release
54- spring-boot-version : [ 3.4.4, 3.5 .0-M3 ]
54+ spring-boot-version : [ 4.0.0-RC1, 4.0 .0-SNAPSHOT ]
5555
5656 steps :
5757 - uses : actions/checkout@v5
Original file line number Diff line number Diff line change 2828 <version >${doma.version} </version >
2929 </dependency >
3030 <dependency >
31- <groupId >org.springframework</groupId >
32- <artifactId >spring-jdbc </artifactId >
31+ <groupId >org.springframework.boot </groupId >
32+ <artifactId >spring-boot-autoconfigure </artifactId >
3333 </dependency >
3434 <dependency >
3535 <groupId >org.springframework.boot</groupId >
36- <artifactId >spring-boot-autoconfigure </artifactId >
36+ <artifactId >spring-boot-jdbc </artifactId >
3737 </dependency >
38+ <dependency >
39+ <groupId >org.springframework.boot</groupId >
40+ <artifactId >spring-boot-data-commons</artifactId >
41+ </dependency >
3842 <dependency >
3943 <groupId >org.springframework.boot</groupId >
4044 <artifactId >spring-boot-configuration-processor</artifactId >
4145 <optional >true</optional >
4246 </dependency >
4347 <dependency >
4448 <groupId >org.springframework.boot</groupId >
45- <artifactId >spring-boot-starter-test</artifactId >
49+ <artifactId >spring-boot-starter-jdbc- test</artifactId >
4650 <scope >test</scope >
4751 </dependency >
4852 <dependency >
Original file line number Diff line number Diff line change 4747import org .springframework .boot .autoconfigure .condition .ConditionalOnClass ;
4848import org .springframework .boot .autoconfigure .condition .ConditionalOnMissingBean ;
4949import org .springframework .boot .autoconfigure .condition .ConditionalOnProperty ;
50- import org .springframework .boot .autoconfigure .jdbc .DataSourceAutoConfiguration ;
51- import org .springframework .boot .autoconfigure .jdbc .JdbcConnectionDetails ;
5250import org .springframework .boot .context .properties .EnableConfigurationProperties ;
5351import org .springframework .boot .jdbc .DatabaseDriver ;
52+ import org .springframework .boot .jdbc .autoconfigure .DataSourceAutoConfiguration ;
53+ import org .springframework .boot .jdbc .autoconfigure .JdbcConnectionDetails ;
5454import org .springframework .context .annotation .Bean ;
5555import org .springframework .context .annotation .Configuration ;
5656import org .springframework .core .io .ResourceLoader ;
Original file line number Diff line number Diff line change 5151import org .seasar .doma .message .Message ;
5252import org .seasar .doma .slf4j .Slf4jJdbcLogger ;
5353import org .springframework .beans .factory .NoSuchBeanDefinitionException ;
54- import org .springframework .boot .autoconfigure . jdbc .DataSourceAutoConfiguration ;
55- import org .springframework .boot .autoconfigure . jdbc .JdbcConnectionDetails ;
54+ import org .springframework .boot .jdbc . autoconfigure .DataSourceAutoConfiguration ;
55+ import org .springframework .boot .jdbc . autoconfigure .JdbcConnectionDetails ;
5656import org .springframework .boot .test .context .runner .ApplicationContextRunner ;
5757import org .springframework .boot .autoconfigure .AutoConfigurations ;
5858import org .springframework .context .annotation .Bean ;
Original file line number Diff line number Diff line change 1717 </parent >
1818
1919 <dependencies >
20- <dependency >
21- <groupId >org.seasar.doma</groupId >
22- <artifactId >doma-core</artifactId >
23- <version >${doma.version} </version >
24- </dependency >
2520 <dependency >
2621 <groupId >org.seasar.doma</groupId >
2722 <artifactId >doma-processor</artifactId >
3530 </dependency >
3631 <dependency >
3732 <groupId >org.springframework.boot</groupId >
38- <artifactId >spring-boot-starter-web </artifactId >
33+ <artifactId >spring-boot-starter-webmvc </artifactId >
3934 </dependency >
4035 <dependency >
4136 <groupId >org.springframework.boot</groupId >
5146
5247 <dependency >
5348 <groupId >org.springframework.boot</groupId >
54- <artifactId >spring-boot-starter-test</artifactId >
49+ <artifactId >spring-boot-starter-webmvc- test</artifactId >
5550 <scope >test</scope >
5651 </dependency >
5752 </dependencies >
Original file line number Diff line number Diff line change 3030 </dependency >
3131 <dependency >
3232 <groupId >org.springframework.boot</groupId >
33- <artifactId >spring-boot-starter-web</artifactId >
34- </dependency >
35- <dependency >
36- <groupId >com.fasterxml.jackson.datatype</groupId >
37- <artifactId >jackson-datatype-jsr310</artifactId >
33+ <artifactId >spring-boot-starter-webmvc</artifactId >
3834 </dependency >
3935 <dependency >
4036 <groupId >com.h2database</groupId >
4339 </dependency >
4440 <dependency >
4541 <groupId >org.springframework.boot</groupId >
46- <artifactId >spring-boot-starter-test</artifactId >
47- <scope >test</scope >
48- </dependency >
49- <dependency >
50- <groupId >org.junit.jupiter</groupId >
51- <artifactId >junit-jupiter</artifactId >
42+ <artifactId >spring-boot-starter-webmvc-test</artifactId >
5243 <scope >test</scope >
5344 </dependency >
5445 </dependencies >
Original file line number Diff line number Diff line change 66import java .util .List ;
77
88import org .junit .jupiter .api .Test ;
9+ import org .springframework .boot .resttestclient .TestRestTemplate ;
10+ import org .springframework .boot .resttestclient .autoconfigure .AutoConfigureTestRestTemplate ;
911import org .springframework .boot .test .context .SpringBootTest ;
1012import org .springframework .boot .test .context .SpringBootTest .WebEnvironment ;
11- import org .springframework .boot .test .web .client .TestRestTemplate ;
1213import org .springframework .boot .test .web .server .LocalServerPort ;
1314import org .springframework .core .ParameterizedTypeReference ;
1415import org .springframework .http .HttpEntity ;
1516import org .springframework .http .HttpMethod ;
1617import org .springframework .web .util .UriComponentsBuilder ;
1718
1819@ SpringBootTest (webEnvironment = WebEnvironment .RANDOM_PORT )
20+ @ AutoConfigureTestRestTemplate
1921class ApplicationTest {
2022 private final TestRestTemplate restTemplate = new TestRestTemplate ();
2123 private final ParameterizedTypeReference <List <Message >> typedReference = new ParameterizedTypeReference <List <Message >>() {
Original file line number Diff line number Diff line change 3030 </dependency >
3131 <dependency >
3232 <groupId >org.springframework.boot</groupId >
33- <artifactId >spring-boot-starter-web</artifactId >
34- </dependency >
35- <dependency >
36- <groupId >com.fasterxml.jackson.datatype</groupId >
37- <artifactId >jackson-datatype-jsr310</artifactId >
33+ <artifactId >spring-boot-starter-webmvc</artifactId >
3834 </dependency >
3935 <dependency >
4036 <groupId >com.h2database</groupId >
4339 </dependency >
4440 <dependency >
4541 <groupId >org.springframework.boot</groupId >
46- <artifactId >spring-boot-starter-test</artifactId >
47- <scope >test</scope >
48- </dependency >
49- <dependency >
50- <groupId >org.junit.jupiter</groupId >
51- <artifactId >junit-jupiter</artifactId >
42+ <artifactId >spring-boot-starter-webmvc-test</artifactId >
5243 <scope >test</scope >
5344 </dependency >
5445 </dependencies >
Original file line number Diff line number Diff line change 66import java .util .List ;
77
88import org .junit .jupiter .api .Test ;
9+ import org .springframework .boot .resttestclient .TestRestTemplate ;
10+ import org .springframework .boot .resttestclient .autoconfigure .AutoConfigureTestRestTemplate ;
911import org .springframework .boot .test .context .SpringBootTest ;
1012import org .springframework .boot .test .context .SpringBootTest .WebEnvironment ;
11- import org .springframework .boot .test .web .client .TestRestTemplate ;
1213import org .springframework .boot .test .web .server .LocalServerPort ;
1314import org .springframework .core .ParameterizedTypeReference ;
1415import org .springframework .http .HttpEntity ;
1516import org .springframework .http .HttpMethod ;
1617import org .springframework .web .util .UriComponentsBuilder ;
1718
1819@ SpringBootTest (webEnvironment = WebEnvironment .RANDOM_PORT )
20+ @ AutoConfigureTestRestTemplate
1921class ApplicationTest {
2022 private final TestRestTemplate restTemplate = new TestRestTemplate ();
2123 private final ParameterizedTypeReference <List <Message >> typedReference = new ParameterizedTypeReference <List <Message >>() {
Original file line number Diff line number Diff line change 1717 </parent >
1818
1919 <dependencies >
20- <dependency >
21- <groupId >org.seasar.doma</groupId >
22- <artifactId >doma-core</artifactId >
23- <version >${doma.version} </version >
24- </dependency >
2520 <dependency >
2621 <groupId >org.seasar.doma</groupId >
2722 <artifactId >doma-processor</artifactId >
3530 </dependency >
3631 <dependency >
3732 <groupId >org.springframework.boot</groupId >
38- <artifactId >spring-boot-starter-web </artifactId >
33+ <artifactId >spring-boot-starter-webmvc </artifactId >
3934 </dependency >
4035 <dependency >
4136 <groupId >com.h2database</groupId >
4439 </dependency >
4540 <dependency >
4641 <groupId >org.springframework.boot</groupId >
47- <artifactId >spring-boot-starter-test</artifactId >
48- <scope >test</scope >
49- </dependency >
50- <dependency >
51- <groupId >org.junit.jupiter</groupId >
52- <artifactId >junit-jupiter</artifactId >
42+ <artifactId >spring-boot-starter-webmvc-test</artifactId >
5343 <scope >test</scope >
5444 </dependency >
5545 </dependencies >
You can’t perform that action at this time.
0 commit comments