zcjhwl opened a new issue #2638: springboot2+mybatis-plus3+sharding-jdbc4.x use xml sharding cant work URL: https://github.com/apache/incubator-shardingsphere/issues/2638 that was the pervious question: I used the XML of mybatis-plus to write simple query statements, but there was no shard rule, so the database table could not be found here's my code: spring.shardingsphere.datasource.names=ds0 spring.shardingsphere.datasource.ds0.type=com.zaxxer.hikari.HikariDataSource spring.shardingsphere.datasource.ds0.driver-class-name=com.mysql.jdbc.Driver spring.shardingsphere.datasource.ds0.jdbc-url=jdbc:mysql://115.28.80.76:3306/julanling_user_profile?useUnicode=true&characterEncoding=UTF-8&useSSL=false spring.shardingsphere.datasource.ds0.username=kf spring.shardingsphere.datasource.ds0.password=Kf@123DFU@#$567Ddf # tables rule spring.shardingsphere.props.sql.show= true # inline分片 ``` spring.shardingsphere.sharding.tables.user_tag_.actual-data-nodes = ds0.user_tag_$->{0..31} spring.shardingsphere.sharding.tables.user_tag_.table-strategy.inline.sharding-column = ax_uid spring.shardingsphere.sharding.tables.user_tag_.table-strategy.inline.algorithm-expression = user_tag_$->{ax_uid % 32} <select id="listByAxUidFromXml" resultMap="BaseResultMap"> select <include refid="Base_Column_List"/> from user_tag where ax_uid = #{axUid} </select> ``` Because I need to use the XML of mybatis plus to write complex SQL, please tell me whether it is supported or there is a problem with it,Thank you.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
