简体   繁体   中英

JAX-RS hostname change possible?

I'm currently developing a REST web service using JAX-RS.

Can I change the host name which is currently "local host 8080"? Also, can I use https?

I want the name to represent an API host like twitter "" https://api.twitter.com " or is this possible?

JAX-RS uses only a subset of the URI path for matching requests (the part relative to your application context). Changes to the domain and schema (http/https) should not make a difference.

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