Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot 如何在spring引导应用程序中使用WebSphereLiberty_Spring Boot_Websphere Liberty - Fatal编程技术网

Spring boot 如何在spring引导应用程序中使用WebSphereLiberty

Spring boot 如何在spring引导应用程序中使用WebSphereLiberty,spring-boot,websphere-liberty,Spring Boot,Websphere Liberty,我想在spring引导应用程序中使用WebSphereLiberty,而不是tomcat服务器。如果我是正确的,它是不支持开箱即用的。如何配置spring boot/websphere liberty来实现这一点?使用您可以下载包含Maven可构建的“spring boot with spring MVC”应用程序的zip作为起点。只需运行mvn install,您就可以在上运行应用程序。实际上,您现在可以使用WebSphere Liberty创建可运行的jar文件。您需要v8.5.5.9或更高

我想在spring引导应用程序中使用WebSphereLiberty,而不是tomcat服务器。如果我是正确的,它是不支持开箱即用的。如何配置spring boot/websphere liberty来实现这一点?

使用您可以下载包含Maven可构建的“spring boot with spring MVC”应用程序的zip作为起点。只需运行
mvn install
,您就可以在上运行应用程序。实际上,您现在可以使用WebSphere Liberty创建可运行的jar文件。您需要v8.5.5.9或更高版本。按以下方式创建可运行的jar:

server package {server name} --archive={jar name}.jar --include=minify,runnable 
结果jar可以按照您的预期运行:

java -jar {jar name}.jar 

最近(2018年5月),您可以使用Liberty部署Spring Boot jar。看见不过还没有试过。

谢谢!!!它正在运行并创建一个war文件。我想从中得到一个可执行的jar。有可能吗?你不能嵌入WLP,所以那里没有jar供你使用,对不起。我正在尝试使用Spring boot开发微服务,并希望使用WAS liberty配置文件将其构建为可执行jar。Spring boot将来会支持开箱即用的WLP吗?可以为WLP定制Spring boot吗?谢谢。如果我在pom中添加了swagger依赖项(io.springfox)或spring批处理(springbootstarterbatch),测试就会失败,服务器也不会启动。是否有应用程序加速器的文档?我找不到。这是关于上面链接的官方文档不起作用,更新的链接是