-SpringBoot 2019 to build the latest Java Mall spike combat system design and video tutorials (SpringBoot version) _2-1 micro-services project to build a multi-module project

Building project






This is the parent module. We do not intend to write code, so deleted directly

The establishment of sub-module

Establish three sub-modules in a fast-parents





establish good api module

model word module



server module word

Added packet dependent jar


Pom.xml parent module

api module

model module

dependent transmission. model-dependent layer api layer

server module is






used to implement zookeeper distributed by the

lang3 used inside also wrote util tool

here even if the project is simple to build complete.

server project

Creating a file server webapp project. Because this is a mvc project

to add web-inf file and

store static resource static folder

api project


model module


server module


They walked up the development of the project must start classes
plus @SpringBootApplication comment.

Then shortcuts psvm to create a main method

inherited SpringBootServletInitializer




returns build.sources which is the current class. It represents a spring was added to the vessel.

Database link profile

Code directly to the finished profile and make use of



this configuration file is not garbled



 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/11525041.html