2.1.2 Logback.xml update, camel version minor update

experiment
Yan 4 weeks ago
parent fadca4d287
commit 7c89a6361e

@ -5,7 +5,7 @@ meta {
} }
post { post {
url: http://localhost:9090/services/api/user url: http://localhost:9091/services/api/user
body: json body: json
auth: basic auth: basic
} }
@ -22,7 +22,7 @@ auth:basic {
body:json { body:json {
{ {
"id": 2, "id": 4,
"name": "Wallie West" "name": "Diana Themyscira"
} }
} }

@ -19,9 +19,7 @@
<pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %logger{36} - %msg%n</pattern> <pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %logger{36} - %msg%n</pattern>
</encoder> </encoder>
</appender> </appender>
<logger name="org.springframework.security.ldap.userdetails" level="TRACE" /> <logger name="com.example.sbcamel" level="DEBUG" />
<logger name="org.springframework.security" level="DEBUG" />
<logger name="com.example.camel" level="DEBUG" />
<root level="INFO"> <root level="INFO">
<appender-ref ref="STDOUT" /> <appender-ref ref="STDOUT" />
</root> </root>

@ -19,9 +19,7 @@
<pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %logger{36} - %msg%n</pattern> <pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %logger{36} - %msg%n</pattern>
</encoder> </encoder>
</appender> </appender>
<logger name="org.springframework.security.ldap.userdetails" level="TRACE" /> <logger name="com.example.sbcamel" level="DEBUG" />
<logger name="org.springframework.security" level="DEBUG" />
<logger name="com.example.camel" level="DEBUG" />
<root level="INFO"> <root level="INFO">
<appender-ref ref="STDOUT" /> <appender-ref ref="STDOUT" />
</root> </root>

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId> <groupId>com.example</groupId>
<artifactId>camel-springboot-activemq6-example</artifactId> <artifactId>camel-springboot-activemq6-example</artifactId>
<version>2.1.1</version> <version>2.1.2</version>
<name>camel-springboot-activemq6-example</name> <name>camel-springboot-activemq6-example</name>
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
@ -15,7 +15,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
<camel.version>4.8.3</camel.version> <camel.version>4.8.4</camel.version>
<springboot.version>${project.parent.version}</springboot.version> <springboot.version>${project.parent.version}</springboot.version>
<mybatis.version>3.5.19</mybatis.version> <mybatis.version>3.5.19</mybatis.version>
<mybatis-spring.version>3.0.4</mybatis-spring.version> <mybatis-spring.version>3.0.4</mybatis-spring.version>

@ -35,6 +35,7 @@ public class CamelRouter extends RouteBuilder {
@PostConstruct @PostConstruct
private void init() { private void init() {
org.apache.ibatis.logging.LogFactory.useSlf4jLogging();
jdbcTemplate.execute(createUserSql); jdbcTemplate.execute(createUserSql);
} }
@ -73,8 +74,8 @@ public class CamelRouter extends RouteBuilder {
.when(header(BeanConstants.BEAN_METHOD_NAME).isEqualTo("findUsers")) .when(header(BeanConstants.BEAN_METHOD_NAME).isEqualTo("findUsers"))
.to("mybatis:com.example.sbcamel.mapper.UserMapper.findUsers?statementType=SelectList") .to("mybatis:com.example.sbcamel.mapper.UserMapper.findUsers?statementType=SelectList")
.when(header(BeanConstants.BEAN_METHOD_NAME).isEqualTo("findUser")) .when(header(BeanConstants.BEAN_METHOD_NAME).isEqualTo("findUser"))
.to("mybatis:com.example.sbcamel.mapper.UserMapper.findUser?statementType=SelectOne").end().marshal() .to("mybatis:com.example.sbcamel.mapper.UserMapper.findUser?statementType=SelectOne")
.json(JsonLibrary.Jackson); .end().marshal().json(JsonLibrary.Jackson);
} }
} }
Loading…
Cancel
Save