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配置就可以了

原文地址:https://www.cnblogs.com/Leechg/p/10335381.html