1
我使用的是春天啓動1.3.3和Hazelcast 我的體型看起來像:Hazelcast和春季啓動
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring.boot.version}</version>
<configuration>
<executable>true</executable>
<layout>ZIP</layout>
<embeddedLaunchScriptProperties>
<mode>service</mode>
<useStartStopDaemon>false</useStartStopDaemon>
</embeddedLaunchScriptProperties>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-all</artifactId>
<version>${hazelcast.version}</version>
</dependency>
當服務在Linux中執行我看到日誌:
org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: com/hazelcast/cluster/impl/operations/WanReplicationOperation
at org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletionWithError(DispatcherServlet.java:1302) ~[spring-webmvc-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:977) ~[spring-webmvc-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
但我看到脂肪罐中的榛子all.jar 任何線索?
stacktrace提到Spring 4.2.4,但Spring Boot 1.3.3使用Spring 4.2.5。 –