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 {
url: http://localhost:9090/services/api/user
url: http://localhost:9091/services/api/user
body: json
auth: basic
}
@ -22,7 +22,7 @@ auth:basic {
body:json {
{
"id": 2,
"name": "Wallie West"
}
"id": 4,
"name": "Diana Themyscira"
}
}

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

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

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

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