youlongchengfeng opened a new issue, #23173:
URL: https://github.com/apache/shardingsphere/issues/23173

   public class MyTableHintShardingAlgorithm implements 
HintShardingAlgorithm<Integer> {
   
        public Collection<String> doSharding(Collection<String> tableNames, 
HintShardingValue<Integer> hintShardingValue) {
                Collection<String> result = new ArrayList<String>();
           for (String tableName : tableNames) {
               for (Integer shardingValue : hintShardingValue.getValues()) {
                   if (tableName.endsWith(shardingValue+ "")) {
                       result.add(tableName);
                   }
               }
           }
           return result;
        }
   
        @Override
        public Properties getProps() {
                // TODO Auto-generated method stub
                return null;
        }
   
        @Override
        public void init(Properties props) {
                // TODO Auto-generated method stub
                
System.out.println("--------------------------------MyTableHintShardingAlgorithm---init------------------------");
        }
        
   }
   
   
   
   
    .   ____          _            __ _ _
    /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
   ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
    \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
     '  |____| .__|_| |_|_| |_\__, | / / / /
    =========|_|==============|___/=/_/_/_/
    :: Spring Boot ::        (v2.3.2.RELEASE)
   
   2022-12-29 23:53:22.700  INFO 11816 --- [           main] 
com.longshun.admin.MyTest                : Starting MyTest on longshun-PC with 
PID 11816 (started by longshun in C:\Develop\workspace\shardingTest)
   2022-12-29 23:53:22.701  INFO 11816 --- [           main] 
com.longshun.admin.MyTest                : No active profile set, falling back 
to default profiles: default
   
--------------------------------MyTableHintShardingAlgorithm---init------------------------
   2022-12-29 23:53:23.520  INFO 11816 --- [           main] 
trationDelegate$BeanPostProcessorChecker : Bean 
'stringToNoneShardingStrategyConfigurationConverter' of type 
[org.apache.shardingsphere.spring.boot.converter.StringToNoneShardingStrategyConfigurationConverter]
 is not eligible for getting processed by all BeanPostProcessors (for example: 
not eligible for auto-proxying)
   2022-12-29 23:53:23.529  INFO 11816 --- [           main] 
trationDelegate$BeanPostProcessorChecker : Bean 
'spring.shardingsphere-org.apache.shardingsphere.spring.boot.prop.SpringBootPropertiesConfiguration'
 of type 
[org.apache.shardingsphere.spring.boot.prop.SpringBootPropertiesConfiguration] 
is not eligible for getting processed by all BeanPostProcessors (for example: 
not eligible for auto-proxying)
   2022-12-29 23:53:24.032  INFO 11816 --- [           main] 
trationDelegate$BeanPostProcessorChecker : Bean 
'org.apache.shardingsphere.spring.boot.ShardingSphereAutoConfiguration' of type 
[org.apache.shardingsphere.spring.boot.ShardingSphereAutoConfiguration$$EnhancerBySpringCGLIB$$7e4de5fa]
 is not eligible for getting processed by all BeanPostProcessors (for example: 
not eligible for auto-proxying)
   
--------------------------------MyTableHintShardingAlgorithm---init------------------------
   2022-12-29 23:53:24.579  INFO 11816 --- [           main] 
com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
   2022-12-29 23:53:24.923  INFO 11816 --- [           main] 
com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
   2022-12-29 23:53:25.189  INFO 11816 --- [           main] 
com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} inited
   
--------------------------------MyTableHintShardingAlgorithm---init------------------------
   Logging initialized using 'class 
org.apache.ibatis.logging.stdout.StdOutImpl' adapter.
   Parsed mapper file: 'file 
[C:\Develop\workspace\shardingTest\target\classes\com\longshun\admin\mapper\StudentMapper.xml]'
   
   
   
   
   is this normal?


-- 
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.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to