liubao68 edited a comment on issue #1612: bmi/webapp 
这里sample如何启动,webroot是不是需要配置static的绝对路径?
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1612#issuecomment-604178273
 
 
   [BMI 
例子](https://github.com/apache/servicecomb-samples/tree/master/java-chassis-samples/bmi)
 里面有配置。 就是你发的:
   
   ```
   gateway:
       webroot: 
/code/servicecomb-samples/java-chassis-samples/bmi/webapp/src/main/resources/static
   ```
   
   这个是windows配置, linux配置的话,只能用相对路径 
   
   
   你也可以尝试修改代码 
[StaticWebpageDispatcher](https://github.com/apache/servicecomb-samples/blob/master/java-chassis-samples/bmi/webapp/src/main/java/org/apache/servicecomb/samples/bmi/StaticWebpageDispatcher.java)
 提供更好的配置方法。 

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to