From 697b0bb839f28204b601f46a810dbfc1744bcdbc Mon Sep 17 00:00:00 2001 From: bsmolicek Date: Thu, 21 Mar 2024 11:36:04 +0100 Subject: [PATCH] Refactor unmuting exceptions for spring-jdbc example --- .../org/apache/camel/example/spring/jdbc/SpringJdbcRoute.java | 1 + spring-jdbc/src/main/resources/application.properties | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-jdbc/src/main/java/org/apache/camel/example/spring/jdbc/SpringJdbcRoute.java b/spring-jdbc/src/main/java/org/apache/camel/example/spring/jdbc/SpringJdbcRoute.java index f4357199..69190ae2 100644 --- a/spring-jdbc/src/main/java/org/apache/camel/example/spring/jdbc/SpringJdbcRoute.java +++ b/spring-jdbc/src/main/java/org/apache/camel/example/spring/jdbc/SpringJdbcRoute.java @@ -29,6 +29,7 @@ public class SpringJdbcRoute extends RouteBuilder { @Override public void configure() throws Exception { + restConfiguration().endpointProperty("muteException", "false"); rest() .post("/horses") .to("direct:persist") diff --git a/spring-jdbc/src/main/resources/application.properties b/spring-jdbc/src/main/resources/application.properties index 76f2a9d1..175ca029 100644 --- a/spring-jdbc/src/main/resources/application.properties +++ b/spring-jdbc/src/main/resources/application.properties @@ -28,5 +28,3 @@ spring.datasource.username=postgres spring.datasource.password=password #init schema.sql spring.sql.init.mode=always - -camel.component.servlet.mute-exception=false