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 2020/03/03 09:10:48 UTC

[GitHub] [servicecomb-java-chassis] zhangbeiyuan-hw opened a new issue #1612: bmi/webapp 这里sample如何启动,webroot是不是需要配置static的绝对路径?

zhangbeiyuan-hw opened a new issue #1612: bmi/webapp 这里sample如何启动,webroot是不是需要配置static的绝对路径?
URL: https://github.com/apache/servicecomb-java-chassis/issues/1612
 
 
   配置如下,这里是否要配置绝对路径,能否按照相对路径配置到resuource/static下?windows系统下怎么配置?
   # This is web root for windows server, change this path according to where you put your source code
   gateway:
     webroot: /code/servicecomb-samples/java-chassis-samples/bmi/webapp/src/main/resources/static
   
   
   2020-03-03 17:08:41.143 ERROR 9760 --- [ntloop-thread-5] o.a.s.c.rest.locator.OperationLocator    : locate path failed, status:Not Found, http method:GET, path:/index.html/, microserviceName:gateway

----------------------------------------------------------------
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

[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1612: bmi/webapp 这里sample如何启动,webroot是不是需要配置static的绝对路径?

Posted by GitBox <gi...@apache.org>.
liubao68 commented 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配置的话,只能用相对路径 

----------------------------------------------------------------
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

[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #1612: bmi/webapp 这里sample如何启动,webroot是不是需要配置static的绝对路径?

Posted by GitBox <gi...@apache.org>.
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #1612: bmi/webapp 这里sample如何启动,webroot是不是需要配置static的绝对路径?

Posted by GitBox <gi...@apache.org>.
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:
users@infra.apache.org


With regards,
Apache Git Services