Create a Java Spring app with Azure App Configuration
. 我用
Spring Boot v2.2.5.RELEASE
和
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>spring-cloud-azure-appconfiguration-config</artifactId>
<version>1.2.2</version>
</dependency>
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.2.5.RELEASE)
它停了几分钟,然后抛出:
java.lang.RuntimeException: Max retries 12 times exceeded. Connection timed out: no further information: appconfigtest.azconfig.io:ip_address:443
...
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no further information: appconfigtest.azconfig.io:ip_address:443
Caused by: java.net.ConnectException: Connection timed out: no further information
试图配置代理设置,但没有帮助。
当我尝试使用.NET Core中的Azure CLI、.NET Core和Azure函数从同一台计算机访问相同的应用程序配置时,它运行良好并显示值。
如何调查/解决问题?