xczs666 commented on pull request #316:
URL: https://github.com/apache/shiro/pull/316#issuecomment-1021469932


   @bdemers  oh no, in _spring 4.X_ (_springboot 1.X_) the **T** in the class 
signature of _FactoryBean<T>_ is parsed to get the type instead of calling 
_getObject()_. In _spring5.X_ (_springboot 2.X_), _getObject()_ was used 
instead. 
   I have a project that simulates this problem: 
[https://github.com/xczs666/shiro-829](https://github.com/xczs666/shiro-829). 
You try to modify 
[https://github.com/xczs666/shiro-829/blob/main/simple-factory-bean-solution-3/src/main/java/simple/factorybean/support/ShiroFilterFactoryBean.java](https://github.com/xczs666/shiro-829/blob/main/simple-factory-bean-solution-3/src/main/java/simple/factorybean/support/ShiroFilterFactoryBean.java),
 then execute 
[https://github.com/xczs666/shiro-829/blob/main/simple-factory-bean-solution-3/src/test/java/simple/factorybean/aspect/ServiceAopTest.java](https://github.com/xczs666/shiro-829/blob/main/simple-factory-bean-solution-3/src/test/java/simple/factorybean/aspect/ServiceAopTest.java).
 You will find that springboot1.X resolves the class signature instead of 
calling getObject().
   I have been busy these two days. Later, I will point out the location of the 
spring source code for you, as well as the verification demo of different 
spring versions.
   


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