8502596 commented on issue #1243:
URL: https://github.com/apache/shiro/issues/1243#issuecomment-2829688722

   In fact, it is divided into two parts. The first is proce-aot, and the 
second is generating exe
   Unfortunately, I couldn't get through the first part.
   
   Modified several configuration issues.  I got the following questions 
[#45285](https://github.com/spring-projects/spring-boot/issues/45285#issue-3019212208)
   
   I usually use [Ruoyi](https://github.com/yangzongzhuan/RuoYi). About  shiro  
He has integrated many configurations.
   
   
![Image](https://github.com/user-attachments/assets/94d37d40-6ccd-4b57-8cdf-dfb8504ff756)
   
   so, Making shiro support AOT is a big project and difficult to debug.
   
   For example, if I modified the configuration shiroConfig and did not use AOT 
to package the exe, it could run normally but got stuck in the pass hot stage. 
I had to determine which bean caused the process hot to wait indefinitely for 
preliminary judgment. In fact, I debugged the code SpringApplicability 
AotProcessor and it has already processed it, but it still doesn't end.
   In fact, using shiro2.0.4+ruoyi+spring boot parent 3.4.5 (latest) will 
result in the following error:
   
   
   myBatisMapperFactoryBeanPostProcessor defined in class path resource 
[com/chengsms/framework/config/MyBatisNativeConfiguration.class]
   ↓
   authorizationAttributeSourceAdvisor defined in class path resource 
[com/chengsms/framework/config/ShiroConfig.class]
   ┌─────┐
   |  securityManager defined in class path resource 
[com/chengsms/framework/config/ShiroConfig.class]
   ↑     ↓
   |  userRealm defined in class path resource 
[com/chengsms/framework/config/ShiroConfig.class]
   ↑     ↓
   |   shiroFilterFactoryBean defined in class path resource 
[com/chengsms/framework/config/ShiroConfig.class]
   └─────┘
   And MyBatisNativeConfiguration is a necessary native configuration principle 
online. I don't know how it works, so I modified shiroConfig
   It's too difficult for me to make Shiro error free but unable to process oot 
through the Spring Boot plugin
   Tutorial or temporary solution?


-- 
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: issues-unsubscr...@shiro.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@shiro.apache.org
For additional commands, e-mail: issues-h...@shiro.apache.org

Reply via email to