Skip to content

Commit bed70f4

Browse files
authored
fix spring data web support autoconfiguration
loading the application context fails under spring boot 3.4.0-M3 due to a `NoUniqueBeanDefinitionException` caused by there being 2 `SpringDataWebSettings` beans available during bean dependency resolution. This might be related to the changes made in spring-projects/spring-boot#39797 Anyway, adding the `@EnableSpringDataWebSupport` annotation fixes the problem.
1 parent 3d36183 commit bed70f4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![build](https://github.com/jkatzwinkel/tla-es/workflows/build/badge.svg)
22
![deploy](https://github.com/jkatzwinkel/tla-es/workflows/deploy/badge.svg)
33
![search](https://github.com/jkatzwinkel/tla-es/workflows/searchtest/badge.svg)
4-
![LINE](https://img.shields.io/badge/line--coverage-82.38%25-brightgreen.svg)
4+
![LINE](https://img.shields.io/badge/line--coverage-82.14%25-brightgreen.svg)
55
![METHOD](https://img.shields.io/badge/method--coverage-81.84%25-brightgreen.svg)
66

77
# tla-es

src/main/java/tla/backend/App.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@
1212
import org.springframework.context.annotation.Bean;
1313
import org.springframework.context.annotation.ComponentScan;
1414
import org.springframework.context.annotation.Configuration;
15+
import org.springframework.data.web.config.EnableSpringDataWebSupport;
1516

1617
import lombok.extern.slf4j.Slf4j;
1718
import tla.backend.es.repo.RepoPopulator;
1819

20+
1921
@Slf4j
2022
@Configuration
2123
@ComponentScan
24+
@EnableSpringDataWebSupport
2225
@EnableAutoConfiguration(exclude = { ElasticsearchDataAutoConfiguration.class })
2326
public class App implements ApplicationRunner {
2427

0 commit comments

Comments
 (0)