Ma Ying-jeou -Java micro-services practice - Spring Boot Series -01Java micro-services practice - Spring Boot Series (a) first experience


Course github address
https://github.com/mercyblitz/segmentfault-lessons




traditional web application architecture. Service is a micro-architecture. What language is not limited to

comparative monomer applications and micro-services



SOA


History of the development of micro-services

rpc more particular to an interface
socket on the bottom for more

distributed, also known outside the process

result of the service processing is generally returned to the service component.
rest can be json, xml, html. Why do so many will choose to json, json format is simple and clear.

Micro-service challenge

Dependent reflection drive driving expression

Contents Summary






demo

spring IO are some dependencies to exclude


embedded container

Create Project


 

The main method directly run

the version used here spring boot is version 1.5.3 of



the notes commented again run the program again


to remove the static method, start the project again

nothing, did not even run

then the current parameters of this class into null


in the startup file off the code to add this



rest Interface




monitor

DeOps: is the development and operation and maintenance


to change the application's port





8081 did not come out is because of the lack of a reference. Actuator


copy it to the following reference above to change the name of the end of the actuator is called

a reference, the mouse will be prompted to put this on the name

to start the program again

visited about 8081






Ba spring boot version dropped 1.4


Hold down Ctrl + left mouse button keyboard move over.

Restart the application
again dump the browser address this

spring and other official documents

memory




mappings are those things that console to see

mapped console


above each of those paths can try

to track

With the source code to see the problem

Several flat level annotations


 

Guess you like

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