arthurlee / spring-r2dbc-samples

Some examples for basic usage for Spirng r2dbc.
MIT License
1 stars 0 forks source link

Unknown property 'spring.r2dbc' #1

Open clour opened 4 years ago

clour commented 4 years ago

My application.yml: `server: port: 8080

spring: r2dbc: url: r2dbcs:mysql://47.104.8.107:3306/clour_oauth?sslMode=DISABLED username: clour_oauth password: ****

logging: level: web: debug org: springframework: data: r2dbc: debug clour: rtdbc: debug`

My build.gradle: dependencies({ compile('org.springframework.boot:spring-boot-starter-data-r2dbc') compile('io.r2dbc:r2dbc-pool') compile('dev.miku:r2dbc-mysql') compile('org.springframework.boot:spring-boot-starter-data-jdbc') compile('org.springframework.boot:spring-boot-starter-webflux') })

But there is a problem: Unknown property 'spring.r2dbc'

And when I debug my application, application fail to start: Parameter 0 of constructor in org.clour.rtdbc.service.StudentService required a bean of type 'org.clour.rtdbc.repository.StudentRepository' that could not be found.

Consider defining a bean of type 'org.clour.rtdbc.repository.StudentRepository' in your configuration.

arthurlee commented 4 years ago

Could you please leave more detail information? Thanks. Or you can give your project if convenient.