标签:ESS path sam 文件夹 ebs 参考资料 window wro version
在Azure App Service for Windows 中部署Java web项目时候,需要在wwwroot下设置web.config,而争对Jar包,war包则有不同的设置方式,一下两段web.config的内容分别对应Jar 和War包
方式一: 启动Jar包的Web.config
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <handlers> <add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" /> </handlers> <httpPlatform processPath="%JAVA_HOME%\bin\java.exe" stdoutLogEnabled ="true" stdoutLogFile="%home%\LogFiles\stdout" arguments="-Djava.net.preferIPv4Stack=true -Dserver.port=%HTTP_PLATFORM_PORT% -jar "%HOME%\site\wwwroot\my-web-project.jar" " >
</httpPlatform> </system.webServer> </configuration>
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <handlers> <add name="httppPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" /> </handlers> <httpPlatform processPath="%AZURE_TOMCAT8_HOME%\bin\startup.bat"> </httpPlatform> </system.webServer> </configuration>
Java sample for Azure App Service: https://github.com/Azure-Samples/app-service-web-java-get-started
【Azure 应用服务】在Azure App Service for Windows 中部署Java web项目时候,需要在wwwroot下设置web.config
标签:ESS path sam 文件夹 ebs 参考资料 window wro version
原文地址:https://www.cnblogs.com/lulight/p/14174321.html