The rear end with a reference mass throwing error messages

 

 

.ErrorCode class, and initialization successful message

 

 To pass the defined parameters, and to throw the classical

Use messageSource.getMessage the classical parameters and stitching

A receiver front-end is defined as the value of the key "apikey"

controller layer ↓

 

 

Front-end receiver

 

 

According to key, to get the message

 

Note:

 

 Classical cast with the rear end receiving the parameter {0}

 

Guess you like

Origin www.cnblogs.com/have-cai/p/12522195.html