arcgis js api proxy java 版本配置

 

<?xml version="1.0" encoding="utf-8" ?>
<ProxyConfig allowedReferers="*"
             mustMatch="false" xmlns="proxy.xsd">
    <serverUrls>
        <serverUrl url="http://services.arcgisonline.com"
                   matchAll="true"/>
        <serverUrl url="h "
                   matchAll="true" 
                   tokenServiceUri=" "
                   username="username"
                   password="password" />
                   
    </serverUrls>
    <logFile>D:\\log.log</logFile>
</ProxyConfig>

 

为了自动获取token在proxy。config中配置了   tokenServiceUri、username、password ,proxy服务会自动获取token

 

这个配置在,net版本中没有问题。但是在java版本中无法正确获取token,删除tokenServiceUri配置就可以了

 

posted @ 2019-01-29 18:19  leechg  阅读(557)  评论(0编辑  收藏  举报