cschneider / Karaf-Tutorial

http://cschneider.github.io/Karaf-Tutorial/
Apache License 2.0
271 stars 305 forks source link

how to use spring-mvc under karaf #31

Closed minikiller closed 7 years ago

minikiller commented 7 years ago

I search net but can not find a example to show use spring-mvc under karaf. I have a example to show oauth2 ,i want to use it in karaf, but do not know how to do it. would you like to help me?Thanks!

cschneider commented 7 years ago

I would not use spring in OSGi. It creates lots of problems as it is not built for modular classloaders. What do you want to use it for?

minikiller commented 7 years ago

Thanks for your reply. https://github.com/ameizi/oltu-oauth2-example this is what i want to import to karaf, if you have free time , you can try to run it under karaf. thanks!

cschneider commented 7 years ago

I do not plan to use spring in OSGi. I did some years ago and even then it did not work well.