my project struct

when i test saveWrite() is ok,print log below
▶ DEBUG 10:12:53.671 [main] org.hibernate.SQL[logStatement:92] - select user0_.id as id1_4_0_, user0_.name as name2_4_0_ from users user0_ where user0_.id=?
▶ INFO 10:12:53.672 [main] m.j.t.r.ReplicationRoutingDataSource[determineCurrentLookupKey:19] - current dataSourceType : read
▶ TRACE 10:12:53.692 [main] o.h.type.descriptor.sql.BasicBinder[bind:65] - binding parameter [1] as [INTEGER] - [1]
▶ TRACE 10:12:53.739 [main] o.h.t.descriptor.sql.BasicExtractor[extract:61] - extracted value ([name2_4_0_] : [VARCHAR]) - [read_1]
▶ DEBUG 10:13:10.687 [main] org.hibernate.SQL[logStatement:92] - insert into users (id, name) values (null, ?)
▶ INFO 10:13:10.688 [main] m.j.t.r.ReplicationRoutingDataSource[determineCurrentLookupKey:19] - current dataSourceType : write
▶ TRACE 10:13:10.694 [main] o.h.type.descriptor.sql.BasicBinder[bind:65] - binding parameter [1] as [VARCHAR] - [New User]
▶ INFO 10:13:36.599 [main] m.j.t.AbstractReplicationDataSourceIntegrationTest[saveWrite:46] - User saved : User{id=5, name='New User'}
▶ DEBUG 10:13:37.237 [main] org.hibernate.SQL[logStatement:92] - select user0_.id as id1_4_0_, user0_.name as name2_4_0_ from users user0_ where user0_.id=?
▶ INFO 10:13:37.238 [main] m.j.t.r.ReplicationRoutingDataSource[determineCurrentLookupKey:19] - current dataSourceType : read
▶ TRACE 10:13:37.242 [main] o.h.type.descriptor.sql.BasicBinder[bind:65] - binding parameter [1] as [INTEGER] - [5]
▶ DEBUG 10:13:54.507 [main] org.hibernate.SQL[logStatement:92] - select user0_.id as id1_4_0_, user0_.name as name2_4_0_ from users user0_ where user0_.id=?
▶ INFO 10:13:54.509 [main] m.j.t.r.ReplicationRoutingDataSource[determineCurrentLookupKey:19] - current dataSourceType : write
▶ TRACE 10:13:54.521 [main] o.h.type.descriptor.sql.BasicBinder[bind:65] - binding parameter [1] as [INTEGER] - [5]
▶ TRACE 10:13:54.524 [main] o.h.t.descriptor.sql.BasicExtractor[extract:61] - extracted value ([name2_4_0_] : [VARCHAR]) - [New User]
,but in spring is not work, log below:
▶ DEBUG 18:27:11.716 [http-nio-8080-exec-4] org.hibernate.SQL[logStatement:92] - select user0_.id as id1_4_0_, user0_.name as name2_4_0_ from users user0_ where user0_.id=?
▶ INFO 18:27:17.901 [http-nio-8080-exec-4] mw.jpa.rwdb.DynamicDataSource[determineCurrentLookupKey:24] - current dataSourceType : read
▶ TRACE 18:27:17.904 [http-nio-8080-exec-4] o.h.type.descriptor.sql.BasicBinder[bind:65] - binding parameter [1] as [INTEGER] - [1]
▶ TRACE 18:27:17.906 [http-nio-8080-exec-4] o.h.t.descriptor.sql.BasicExtractor[extract:61] - extracted value ([name2_4_0_] : [VARCHAR]) - [read_1]
▶ DEBUG 18:27:17.913 [http-nio-8080-exec-4] org.hibernate.SQL[logStatement:92] - insert into users (id, name) values (null, ?)
▶ TRACE 18:27:17.914 [http-nio-8080-exec-4] o.h.type.descriptor.sql.BasicBinder[bind:65] - binding parameter [1] as [VARCHAR] - [New User]
▶ INFO 18:27:17.918 [http-nio-8080-exec-4] m.j.c.ReportTempletController[test:75] - User saved : User{id=7, name='New User'}
▶ INFO 18:27:17.920 [http-nio-8080-exec-4] m.j.c.ReportTempletController[test:78] - findByIdRead : false
▶ INFO 18:27:17.921 [http-nio-8080-exec-4] m.j.c.ReportTempletController[test:80] - findByIdWrite : false
in the test method current dataSourceType print three times, but in webController print just once.
my code zip,
spring-jpa-app.zip
please help.
my project struct

when i test saveWrite() is ok,print log below
,but in spring is not work, log below:
in the test method current dataSourceType print three times, but in webController print just once.
my code zip,
spring-jpa-app.zip
please help.