No se puede establecer spring.datasource.type
Estoy tratando de configurar c3p0 en mi servidor de arranque de primavera. Esta es mi configuración en este momento
spring.datasource.url=jdbc:mysql://url/db
spring.datasource.username=username
spring.datasource.password=password
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.test-on-borrow=true
#spring.datasource.test-while-idle=true
spring.datasource.validation-query=SELECT 1
#spring.datasource.time-between-eviction-runs-millis=10000
#spring.datasource.min-evictable-idle-time-millis=30000
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.globally_quoted_identifiers=true
spring.jpa.properties.hibernate.connection.provider_class=org.hibernate.connection.C3P0ConnectionProvider
spring.jpa.properties.hibernate.connection.driver_class=com.mysql.jdbc.Driver
spring.jpa.properties.hibernate.connection.url=jdbc:mysql://url/db
spring.jpa.properties.hibernate.connection.username=username
spring.jpa.properties.hibernate.connection.password=password
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
spring.jpa.properties.hibernate.show_sql=true
#spring.jpa.properties.hibernate.hbm2ddl.auto=create-drop
spring.jpa.properties.hibernate.c3p0.max_size=30
spring.jpa.properties.hibernate.c3p0.min_size=7
spring.jpa.properties.hibernate.c3p0.acquire_increment=1
spring.jpa.properties.hibernate.c3p0.idle_test_period=100
spring.jpa.properties.hibernate.c3p0.max_statements=0
spring.jpa.properties.hibernate.c3p0.max_idle_time=200
spring.jpa.properties.hibernate.c3p0.url=jdbc:mysql://url/db
spring.jpa.properties.hibernate.c3p0.username=username
spring.jpa.properties.hibernate.c3p0.password=password
spring.jpa.properties.hibernate.c3p0.driverClassName=com.mysql.jdbc.Driver
Mi problema es que no puedo entender cómo decirle a spring.datasource que use
com.mchange.v2.c3p0.ComboPooledDataSource
Todas las definiciones XML que vi usan algo en la línea de
<bean id="dataSource" class = "com.mchange.v2.c3p0.ComboPooledDataSource">
¿No es posible establecer el tipo / clase de fuente de datos en application.properties?
De acuerdo a esto
Ahi esta
spring.datasource.type= # fully qualified name of the connection pool implementation to use
pero de acuerdo a esto
http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
(y para mi STS) la opción .type no existe. ¿Es esto un error o se supone que debo usar esto de manera diferente?
¡Su ayuda será muy apreciada!
¡Salud!