简体   繁体   中英

Is it mandatory to integrate RESTEasy with Spring on JBOSS AS?

I am trying to expose a simple web resource on JBOSS AS using Spring.

Is it mandatory to configure RESTEasy with Spring in order to the server to serve the requests correctly?

I have already deployed my war file without no configuration in the web.xml and I don't know if the configuration has something to do with RESTEasy integration.

All the documentation found indicates so but I need to be sure if it can't be done without RESTEasy.

If you want to access Spring beans in your REST endpoint classes, then you have to integrate Spring with RestEasy, so that RestEasy is able to find your Spring beans. If you don't have this requirement, then it's not necessary.

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