At present the project to build a polymerization by maven, but now can not go running.
I walked up and you need to use Springboot. We need to rely on a respective packet into the jar us the pom.xml
springboot parent dependency.
jdk version number as a whole is set to 1.8
by default use springboot comes with a logging. We are here this log excluded. Follow-up because we will integrate other logs.
a container which contains a spring web module.
The default spring can be resolved to yml. If the project which uses xml also use properties. So some other documents, he wanted to resolve the case, it is necessary to introduce this dependency. In general, this dependence will be introduced.
These rely on our introduction, all to be managed by the dependent parent maven. So you do not need to write following the introduction of the version number.
Creating yml
Icon is a green leaf, it is to represent spring
created springboot start classes
controller
This is a web project then we need to have control layer
we need to put the request to the control layer processing. As used herein @RestController.
@Controller in SpringMvc which use more. You can go take a jump page. Use RestController json objects are returned by default.
Run the test
Pay attention before you run. We write some code. Pom.xml polymerization project introduces corresponding dependent, before running. Ratio must be maven installation.
Double-click the install
to wait for installation
can be seen already started our project a success.
End