Rdebu opened a new issue #58:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/58


   ### Issue description
   After the Java plugin is written and run, how does Apisix get the custom 
filter? Is it through the Spring container  
   ### Environment
   apisix 2.7
   apisix-java-plugin-runner 0.1
   * your apisix-java-plugin-runner version
   I want to know:
   After the Java plugin is written and run, how does Apisix get the custom 
filter? Is it through the Spring ApplicationContext?
   
   I want to get the Filter Bean "TokenValidator" by code . So when apisix is 
running, I send the request filtered by the TokenValidator immediately . We can 
see the filter TokenValidator was running. But I can't get the TokenValidator 
Bean from the Spring applicationContext . why?  Is it because it's not in the 
spring applicationContext?
   
   the java code :  after apisix running for 15 seconds
   
   
![image](https://user-images.githubusercontent.com/58921097/129432465-ad2e753e-15f5-4ec7-8b3c-c0978031574c.png)
   
    (During this time I send a request from curl,can proved that the filter 
TokenValidator worked) ,
   
   
![image](https://user-images.githubusercontent.com/58921097/129432709-3c74bd8c-0417-4ee1-a66e-dbf0f83fedf5.png)
   
    I just tried to get the bean from spring applicationContext, but it turned 
out not to exist.
   
   
![image](https://user-images.githubusercontent.com/58921097/129432732-6b7d70bd-7dad-4999-acc1-e62d8a549356.png)
   
   
   


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