我有一个多模块的spring-boot项目,我想在上部署它,我也在那里安装了Jenkins。源代码托管在Github中。每个模块都包含在一个war中,以便拥有一个微服务结构:
<modules>
<module>xyz-common</module>
<module>xyz-data-services</module> <!--a REST service to interact with mongodb-->
<module>xyz-batch-impo
我有一个多模块maven,配置如下:
sub-module maven : modul-main : contains the Main class and config folder with an application.properties file
sub-module maven : modul-common : an another sub-module
如果我用modul更新我的代码,那么命令
mvn spring-boot:run
在运行时看到我的更改,但是如果我用更新我的代码,那么命令
mvn spring-boot:run
看不到我的变化!
怎么解
我已经编写了一个Spring引导应用程序。我在pom.xml上运行mvn clean install。这将在我的目标文件夹中生成一个.jar文件,但是当对该jar文件运行java -jar fb-0.0.1-snapshot.jar时,我得到了以下内容: Error: Could not find or load main class jar
Caused by: java.lang.ClassNotFoundException: jar 我有一个简单的springboot应用程序。我跟随这个tutorial学习了如何使用maven打包一个jar,但是仍然没有成功。这是我的pom.xml的一
在"maven干净“之后,我的spring引导项目不再编译了
RunAs -> Spring
Impossible to find or load the main class com.in28minutes.springboot.rest.example.springboot2restservicebasic.SpringBoot2RestServiceBasicApplication
因此,从终端:mvn spring-boot:运行(或)
Compilation failure
[ERROR] /D:/eclipse-workspace/spring-boot-2-res
我正在用Spring服务进行实验,我的开始项目是RESTful的。该项目运行良好,当我点击http://localhost:8080/greeting时,我得到{"id":1,"content":"Hello,World!"}。
问题是,当我在我的spring-data-rest-core和spring-data-rest-webmvc中添加依赖项时,应用程序不再工作了。当我点击http://localhost:8080/greeting时,会得到以下错误:
Whitelabel Error Page
This application has n