You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/07/22 10:49:18 UTC

[GitHub] [servicecomb-java-chassis] zhangaijing commented on issue #1274: servicecomb怎么能直接访问HTML页面?

zhangaijing commented on issue #1274: servicecomb怎么能直接访问HTML页面?
URL: https://github.com/apache/servicecomb-java-chassis/issues/1274#issuecomment-513741701
 
 
   > servicecomb缺省不是一个web服务器,只是http服务,提供REST。servicecomb的web模式下,可以使用web容器的功能,比如spring boot的embeded tomcat。 这里有个例子可以参考: https://github.com/huaweicse/HouseApp/tree/master/customer-website 这里使用了spring boot自身的web容器,页面按照spring boot的要求放到了static目录。 详细可以参考spring boot文档说明。
   > 
   > 可以通过[https://bbs.huaweicloud.com/blogs/eca98a6f399a11e9bd5a7ca23e93a891了解下与spring](https://bbs.huaweicloud.com/blogs/eca98a6f399a11e9bd5a7ca23e93a891%E4%BA%86%E8%A7%A3%E4%B8%8B%E4%B8%8Espring) boot的差异。
   
   感谢你的回复,参考的例子还没细看。请问下:想做一个类似swagger这样的功能,能嵌入到serviceComb项目中(只要在serviceComb项目中MAVEN进来(swagger jar包)就可以直接访问swagger里的页面),该如何实现??
   ![image](https://user-images.githubusercontent.com/16713552/61627037-65e1da80-acb1-11e9-8a0d-6a612c777b65.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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services