简体   繁体   中英

Mule - call a controller from inside onCall() method of java class

I am working on a project which is a mavenized web application having Mule support in it. There is requirement to call controller from inside a java class which implements Callable interface. I achieved it by creating an object of controller but it is against MVC rules. Then i tried to use @Autowired annotation but it doesn't work in onCall() method. Is there any solution by which i can call a controller method from java class?

使用Spring将控制器注入Callable bean的字段中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM