启动运行的时候出现错误:
2020-10-20 12:01:21.628 DEBUG 69140 --- [ main] i.n.util.internal.NativeLibraryLoader : netty_tcnative_windows_x86_64 cannot be loaded from java.library.path, now trying export to -Dio.netty.native.workdir: C:甥敳獲yhuAppDataLocalTempjava.lang.UnsatisfiedLinkError: no netty_tcnative_windows_x86_64 in java.library.path: [C:DkitsJavaOpenJDK11.0.4bin, C:windowsSunJavabin, C:windowssystem32, C:windows, %JAVA_HOME%bin, %MAVEN_HOME%bin, %GRADLE_HOME%bin, C:Program Files (x86)NetSarangXshell 6, C:windowssystem32, C:windows, C:windowsSystem32Wbem, C:windowsSystem32WindowsPowerShellv1.0, C:windowsSystem32OpenSSH, C:Program Files (x86)WebexWebexApplications, C:Program Files (x86)PlantronicsSpokes3G, C:Program Files (x86)Enterprise VaultEVClientx64, C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL, C:Program FilesIntelIntel(R) Management Engine ComponentsDAL, C:Program FilesIntelWiFibin, C:Program FilesCommon FilesIntelWirelessCommon, C:Program FilesPuTTY, C:Program Files (x86)GnuWin32bin, C:Program Filesodejs, C:Program Files (x86)Yarnbin, C:甥敳獲yhuDkitsprotocbin, C:Program FilesGitcmd, C:Program FilesTortoiseGitbin, C:Program FilesTortoiseSVNbin, C:Program FilesAmazonAWSCLIV2, C:Program Files (x86)Microsoft SQL Server150DTSBinn, C:DkitsJavaOpenJDK11.0.4bin, C:甥敳獲yhuDkitsmavenbin, C:甥敳獲yhuDkitsscalabin, C:Dkitsgradlebin, C:甥敳獲yhuAppDataLocalMicrosoftWindowsApps, C:甥敳獲yhuAppDataLocalatombin, C:甥敳獲yhuAppDataLocalProgramsMicrosoft VS Codebin, C:甥敳獲yhuAppDataLocalGitHubDesktopbin, C:甥敳獲yhuAppDataRoamingpm, C:甥敳獲yhuAppDataLocalYarnbin, C:甥敳獲yhuDkitsprotocbin, .]at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2660)at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:829)at java.base/java.lang.System.loadLibrary(System.java:1867)
错误原因和分析
这个错误的原因是包的冲突。
如果你的配置文件中有下面 2 个包。
这 2 个包是冲突的。
com.microsoft.azure applicationinsights-spring-boot-starter 1.1.1com.microsoft.azure spring-cloud-azure-appconfiguration-config 1.2.7
所以你需要将 spring-cloud-azure-appconfiguration-config 这个包删除后才可以启动。