Skip to content

Commit d82ad48

Browse files
snicollwilkinsona
authored andcommitted
Create spring-boot-data-web module
1 parent a03dde9 commit d82ad48

File tree

17 files changed

+59
-14
lines changed

17 files changed

+59
-14
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ include "spring-boot-project:spring-boot-data-neo4j"
6363
include "spring-boot-project:spring-boot-data-r2dbc"
6464
include "spring-boot-project:spring-boot-data-redis"
6565
include "spring-boot-project:spring-boot-data-rest"
66+
include "spring-boot-project:spring-boot-data-web"
6667
include "spring-boot-project:spring-boot-dependencies"
6768
include "spring-boot-project:spring-boot-devtools"
6869
include "spring-boot-project:spring-boot-docker-compose"

spring-boot-project/spring-boot-autoconfigure-all/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
org.springframework.boot.autoconfigure.aop.AopAutoConfiguration
22
org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration
33
org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration
4-
org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration
54
org.springframework.boot.autoconfigure.graphql.GraphQlAutoConfiguration
65
org.springframework.boot.autoconfigure.graphql.data.GraphQlReactiveQueryByExampleAutoConfiguration
76
org.springframework.boot.autoconfigure.graphql.data.GraphQlReactiveQuerydslAutoConfiguration
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
plugins {
2+
id "java-library"
3+
id "org.springframework.boot.auto-configuration"
4+
id "org.springframework.boot.configuration-properties"
5+
id "org.springframework.boot.deployed"
6+
id "org.springframework.boot.optional-dependencies"
7+
}
8+
9+
description = "Spring Boot New Project"
10+
11+
dependencies {
12+
api(project(":spring-boot-project:spring-boot-webmvc"))
13+
api("org.springframework.data:spring-data-commons")
14+
15+
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
16+
17+
testImplementation(project(":spring-boot-project:spring-boot-data-jpa"))
18+
testImplementation(project(":spring-boot-project:spring-boot-test"))
19+
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
20+
testImplementation(testFixtures(project(":spring-boot-project:spring-boot-autoconfigure")))
21+
22+
testRuntimeOnly("ch.qos.logback:logback-classic")
23+
testRuntimeOnly("com.h2database:h2")
24+
testRuntimeOnly("com.zaxxer:HikariCP")
25+
testRuntimeOnly("jakarta.servlet:jakarta.servlet-api")
26+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* @author Andy Wilkinson
4444
* @author Vedran Pavic
4545
* @author Yanming Zhou
46-
* @since 1.2.0
46+
* @since 4.0.0
4747
*/
4848
@AutoConfiguration(afterName = "org.springframework.boot.data.rest.autoconfigure.RepositoryRestMvcAutoConfiguration")
4949
@EnableSpringDataWebSupport
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@
2424
*
2525
* @author Vedran Pavic
2626
* @author Yanming Zhou
27-
* @since 2.0.0
27+
* @since 4.0.0
2828
*/
2929
@ConfigurationProperties("spring.data.web")
3030
public class SpringDataWebProperties {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"groups": [],
3+
"properties": []
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
import org.springframework.boot.autoconfigure.AutoConfigurations;
2222
import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage;
23-
import org.springframework.boot.autoconfigure.data.alt.jpa.City;
24-
import org.springframework.boot.autoconfigure.data.alt.jpa.CityJpaRepository;
23+
import org.springframework.boot.autoconfigure.data.web.domain.city.City;
24+
import org.springframework.boot.autoconfigure.data.web.domain.city.CityRepository;
2525
import org.springframework.boot.data.jpa.autoconfigure.JpaRepositoriesAutoConfiguration;
2626
import org.springframework.boot.jdbc.autoconfigure.DataSourceAutoConfiguration;
2727
import org.springframework.boot.jpa.autoconfigure.hibernate.HibernateJpaAutoConfiguration;
@@ -52,7 +52,7 @@ class SpringDataWebAutoConfigurationJpaTests {
5252
@Test
5353
void springDataWebIsConfiguredWithJpaRepositories() {
5454
this.contextRunner.withUserConfiguration(TestConfiguration.class).run((context) -> {
55-
assertThat(context).hasSingleBean(CityJpaRepository.class);
55+
assertThat(context).hasSingleBean(CityRepository.class);
5656
assertThat(context).hasSingleBean(PageableHandlerMethodArgumentResolver.class);
5757
assertThat(context).hasSingleBean(SortHandlerMethodArgumentResolver.class);
5858
assertThat(context.getBean(FormattingConversionService.class).canConvert(String.class, Distance.class))
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)