Skip to content

Code sample in "Developing Your First Spring Boot Application" does not work #34513

@tehnodev

Description

@tehnodev

MyApplication.java example code do not work without package declaration. spring-boot:run command shows

... ** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package. ... Caused by: java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.r2dbc.ConnectionFactoryConfigurations$PoolConfiguration due to io/r2dbc/spi/ValidationDepth not found. Make sure your own configuration does not rely on that class. This can also happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake) ... 

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions