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.
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.