This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch 1475-5 in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit daa21dd59150f1ee5398e545d2d6aeb5cc494be0 Author: Andrea Cosentino <[email protected]> AuthorDate: Thu May 25 15:17:35 2023 +0200 Bean: Use properties instead of property with key and value - MySQL Source Signed-off-by: Andrea Cosentino <[email protected]> --- .../src/main/resources/kamelets/mysql-source.kamelet.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/library/camel-kamelets/src/main/resources/kamelets/mysql-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/mysql-source.kamelet.yaml index 31fd5624..e917b1c3 100644 --- a/library/camel-kamelets/src/main/resources/kamelets/mysql-source.kamelet.yaml +++ b/library/camel-kamelets/src/main/resources/kamelets/mysql-source.kamelet.yaml @@ -99,15 +99,11 @@ spec: beans: - name: dsBean type: "#class:org.apache.commons.dbcp2.BasicDataSource" - property: - - key: username - value: '{{username}}' - - key: password - value: '{{password}}' - - key: url - value: 'jdbc:mysql://{{serverName}}:{{serverPort}}/{{databaseName}}' - - key: driverClassName - value: 'com.mysql.cj.jdbc.Driver' + properties: + username: '{{username}}' + password: '{{password}}' + url: 'jdbc:mysql://{{serverName}}:{{serverPort}}/{{databaseName}}' + driverClassName: 'com.mysql.cj.jdbc.Driver' from: uri: "sql:{{query}}" parameters:
