create project a,
includes sub-project brecedcpdd,
b is springboot startup project,
b depends on c, c depends on d, ask for instructions on how to establish-sharp-sharp-sharp problem description
create project a,
includes sub-project brecedcpdd,
b is springboot startup project,
b depends on c, c depends on d, ask for instructions on how to establish-sharp-sharp-sharp problem description
1. First create an empty project A
2. Create the first module project B (web)
3. Create a second module project C (core)
4. Establish the third module project D (common)
1. Specify the included modules
<groupId>com.aa</groupId>
<artifactId>project</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<!-- module -->
<modules>
<module>project-common</module>
<module>project-core</module>
<module>project-web</module>
</modules>
<!-- propertiesdependencyManagement -->
<properties>
<learn-project.version>1.0.0-SNAPSHOT</learn-project.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.aa</groupId>
<artifactId>project-core</artifactId>
<version>${learn-project.version}</version>
</dependency>
<dependency>
<groupId>com.aa</groupId>
<artifactId>project-web</artifactId>
<version>${learn-project.version}</version>
</dependency>
<dependency>
<groupId>com.aa</groupId>
<artifactId>project-common</artifactId>
<version>${learn-project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
II. Write
in the pom.xml file of Project B<parent>
<groupId>com.aa</groupId>
<artifactId>project</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
<groupId>com.aa</groupId>
<artifactId>project-core</artifactId>
</dependency>
</dependencies>
III. Write
in the pom.xml of C project.<parent>
<groupId>com.aa</groupId>
<artifactId>project</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
<groupId>com.aa</groupId>
<artifactId>project-common</artifactId>
</dependency>
</dependencies>
from a project maintenance point of view, I personally don't recommend that you manage large engineering projects in a subproject nesting way, which will complicate the project, although gradle supports it and is simpler than maven. If you really need to do this, refer to the official documentation: ide/multi_project_builds.html" rel=" nofollow noreferrer "> https://docs.gradle.org/curre.
my personal recommendation is to maintain these sub-projects separately, package them into spring boot application, sub-projects in the main project and rely on them as plug-ins, all of which are pushed to maven warehouse (private maven warehouse can be built) for unified management and maintenance. This does not affect each other, and it is the correct posture of maven
Previous: Does iViewUi have a UI library for mobile devices?
Next: What does this code mean? What do you mean by [] and after []?
Why did spring fail to automatically match fields? Wechat s front end reads as follows: Java: ...
Front-end proxy server interface controlleraxios postaxiosgetoption tried to implement the filter interface in the background, but it didn t work. Later, I deleted it. Anyway, I have tried many methods that can be found on the Internet . ...
such as the title. such as the title. such as the title. ...
1. Recently, when I was learning hibernate, a question suddenly occurred to me: can I use hibernate instead of a database to store data? Can it cooperate with hibernate with simple file access? 2. In order to answer this question, I think we should fi...
there is a set collection of tag classes in the user class; maintain relationships only from the user class, one-to-many @ OneToMany @JoinTable(name="shuo_tag", inverseJoinColumns=@JoinColumn(name="tag_id"), jo...
thymeleaf 2.+ requires < script th:inline= "javascript " > declare this Is there a better way after thymeleaf3? can the declaration be omitted? I read the document saying that it is recommended to remove . Template updates remove any th:inline= ...
when I actually use it, it s not what the documentation says. my thymeleaf version The code calls the tostring method of the class in this way <script> console.log([[${games}]]) < script> chorme console: an error will be prompted, b...
tomcat can be accessed normally at the beginning, but after a week or two of operation, it cannot be accessed normally, and it does not report an error, but it just cannot be accessed, which is very strange. jdk and tomcat are both 32-bit, is that the r...
questions about parsing parameters in request and putting them back in request get and post follow the method , parsing is normal, but an exception is thrown when a put request is encountered. put requests request of spring , while tomc...
problem description: the front end invokes a service An at the back end, and this service A contains the sub-service BMagne C * C * C has its own independent transaction mechanism and does not affect each other. After is executed, the final return fro...
there is a problem that I can t solve when I just learned ssm,. No, no, no. The directory structure is as follows error message: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTes...
error prompt: 08-Apr-2018 22:43:20.746 [RMI TCP Connection(2)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bea...
requirements: http: localhost:80 order service?method=getTradeInfo http: localhost:80 order service?method=createTrade requires method to decide which method to map to which controller, and how should it be implemented? now only knows that spring...
the work java spring does is not caused by the language feature limitations of java. so python should need something similar, but why didn t it develop? ...
several pages are packaged with vue-cil and published to the java server. The value sent by, spring mvc to vue,vue has not been received. Can vue use ${variable} to receive the value? Because the page developed by vue is released to the backend, and the ...
problem description: basically prevents users from making malicious requests, limits the number of visits per unit time , and then makes an aop, but I can t get the return value of the aop method in the controller layer, as follows: @Pointcut("...
RT. I want to verify that in the request InnerValidatedRequest, if the fields houseName and houseAddress, in the InnerValidatedRequestData member object are annotated with the @ Validated of SpringMVC, what else do you need to add? if this is the c...
package spittr.web; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springfra...
in the spring in actin fourth edition, Chapter V 5.4.2 check data section, use JSR303 for data verification, but it does not take effect, and there is no error uses the implementation of hibernate-validator, and gradle depends on: @RequestMapping(va...
when learning springboot, add: to pom.xml <dependency> <groupId>org.springframework.boot< groupId> <artifactId>spring-boot-starter-actuator< artifactId> < dependency> After restart the projec...