File tree Expand file tree Collapse file tree 22 files changed +82
-88
lines changed
doma-spring-boot-autoconfigure
main/java/org/seasar/doma/boot/autoconfigure
test/java/org/seasar/doma/boot/autoconfigure
doma-spring-boot-jacoco-aggregate
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
src/main/resources/META-INF Expand file tree Collapse file tree 22 files changed +82
-88
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 1212 <parent >
1313 <groupId >org.seasar.doma.boot</groupId >
1414 <artifactId >doma-spring-boot</artifactId >
15- <version >2.5 .0-SNAPSHOT</version >
15+ <version >3.0 .0-SNAPSHOT</version >
1616 <relativePath >../pom.xml</relativePath >
1717 </parent >
1818
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 1212 <parent >
1313 <groupId >org.seasar.doma.boot</groupId >
1414 <artifactId >doma-spring-boot</artifactId >
15- <version >2.5 .0-SNAPSHOT</version >
15+ <version >3.0 .0-SNAPSHOT</version >
1616 <relativePath >../pom.xml</relativePath >
1717 </parent >
1818
Original file line number Diff line number Diff line change 77 <parent >
88 <groupId >org.seasar.doma.boot</groupId >
99 <artifactId >doma-spring-boot</artifactId >
10- <version >2.5 .0-SNAPSHOT</version >
10+ <version >3.0 .0-SNAPSHOT</version >
1111 <relativePath >../pom.xml</relativePath >
1212 </parent >
1313 <artifactId >doma-spring-boot-jacoco-aggregate</artifactId >
Original file line number Diff line number Diff line change 1212 <parent >
1313 <groupId >org.seasar.doma.boot</groupId >
1414 <artifactId >doma-spring-boot-samples</artifactId >
15- <version >2.5 .0-SNAPSHOT</version >
15+ <version >3.0 .0-SNAPSHOT</version >
1616 <relativePath >../pom.xml</relativePath >
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 1212 <parent >
1313 <groupId >org.seasar.doma.boot</groupId >
1414 <artifactId >doma-spring-boot-samples</artifactId >
15- <version >2.5 .0-SNAPSHOT</version >
15+ <version >3.0 .0-SNAPSHOT</version >
1616 <relativePath >../pom.xml</relativePath >
1717 </parent >
1818
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 .beans .factory .annotation .Autowired ;
10+ import org .springframework .boot .resttestclient .TestRestTemplate ;
11+ import org .springframework .boot .resttestclient .autoconfigure .AutoConfigureTestRestTemplate ;
912import org .springframework .boot .test .context .SpringBootTest ;
1013import org .springframework .boot .test .context .SpringBootTest .WebEnvironment ;
11- import org .springframework .boot .test .web .client .TestRestTemplate ;
1214import org .springframework .boot .test .web .server .LocalServerPort ;
1315import org .springframework .core .ParameterizedTypeReference ;
1416import org .springframework .http .HttpEntity ;
1517import org .springframework .http .HttpMethod ;
1618import org .springframework .web .util .UriComponentsBuilder ;
1719
1820@ SpringBootTest (webEnvironment = WebEnvironment .RANDOM_PORT )
21+ @ AutoConfigureTestRestTemplate
1922class ApplicationTest {
20- private final TestRestTemplate restTemplate = new TestRestTemplate ();
23+ @ Autowired
24+ private TestRestTemplate restTemplate ;
2125 private final ParameterizedTypeReference <List <Message >> typedReference = new ParameterizedTypeReference <List <Message >>() {
2226 };
2327 @ LocalServerPort
Original file line number Diff line number Diff line change 1212 <parent >
1313 <groupId >org.seasar.doma.boot</groupId >
1414 <artifactId >doma-spring-boot-samples</artifactId >
15- <version >2.5 .0-SNAPSHOT</version >
15+ <version >3.0 .0-SNAPSHOT</version >
1616 <relativePath >../pom.xml</relativePath >
1717 </parent >
1818
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 >
You can’t perform that action at this time.
0 commit comments