Skip to content

Fix p6spy-spring-boot-starter 2.0.0 test compatibility#95

Draft
Copilot wants to merge 3 commits into
dependabot/maven/com.github.gavlyukovskiy-p6spy-spring-boot-starter-2.0.0from
copilot/sub-pr-90
Draft

Fix p6spy-spring-boot-starter 2.0.0 test compatibility#95
Copilot wants to merge 3 commits into
dependabot/maven/com.github.gavlyukovskiy-p6spy-spring-boot-starter-2.0.0from
copilot/sub-pr-90

Conversation

Copilot AI commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

The p6spy-spring-boot-starter 2.0.0 upgrade introduced a BeanDefinitionOverrideException in delivery module tests due to duplicate autoconfiguration of oracleUcpPoolDataSourceMetadataProvider conflicting with Spring Boot's JDBC metadata providers.

Changes

Added delivery/test-resources/application.properties with test-specific configuration:

  • Bean conflict resolution: Enable spring.main.allow-bean-definition-overriding=true to permit the duplicate bean definitions from p6spy 2.0.0
  • Schema initialization: Configure spring.jpa.hibernate.ddl-auto=update and spring.jpa.defer-datasource-initialization=true to ensure Hibernate creates tables before data.sql executes
  • Hibernate Search: Use in-memory local-heap backend for tests instead of filesystem-based indexing

The fix is scoped to tests only - production configuration remains unchanged.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 10, 2026 12:10
Co-authored-by: ato <10588+ato@users.noreply.github.com>
Co-authored-by: ato <10588+ato@users.noreply.github.com>
Copilot AI changed the title [WIP] Bump p6spy-spring-boot-starter from 1.12.0 to 2.0.0 Fix p6spy-spring-boot-starter 2.0.0 test compatibility Feb 10, 2026
Copilot AI requested a review from ato February 10, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants