zyx-zyj commented on issue #2518:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/2518#issuecomment-915840680


   在调试业务自定的SPI加载时,在调用BeanUtils.getBeansOfType(Cipher.class)时获取的map size
   为0
   private Cipher findCipher() {
           if ("default".equals(this.getCipher())) {
               return DefaultCipher.getInstance();
           } else {
               Map<String, Cipher> cipherBeans = 
BeanUtils.getBeansOfType(Cipher.class);
               return (Cipher)cipherBeans.values().stream().filter((c) -> {
                   return c.name().equals(this.getCipher());
               }).findFirst().orElseThrow(() -> {
                   return new IllegalArgumentException("failed to find cipher 
named " + this.getCipher());
               });
           }
       }
   断点调试发现BeanUtils的ApplicationContext context为null,请问还需要配置什么吗?


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