Record the meaning of some annotations

@SuppressWarnings("rawtypes")

- ignore the specified warnings
rawtypes is also passing parameters with generics, said that mass participation

@PostConstruct

- used to modify a non-static void () method
is @PostConstruct modified method runs when you load Servle server, and the server will only be executed once. After performing PostConstruct constructor, init () method before execution.

@DynamicUpdate

- When updating a field in a table, update all fields

@Transient

- adding unwanted properties of the sequence in front of the annotations, the time sequence of the object, the property will not be serialized to the specified destination.

@JsonSerialize

- custom serialization

@MappedSuperclassa

- marked the annotated classes would not be a complete entity class, you will not be mapped to a database table, but its properties are mapped to database field that subclass. The class also can not be marked or @Entity @Table notes, also need to implement serialization Interface

@ConditionalOnWebApplication

- When the project is an example of a Web project.

@DisallowConcurrentExecution

Prohibits execution of multiple concurrent JobDetail same definition, this annotation is added to the Job class, but do not mean can not perform more than Job, but can not be executed concurrently with a Job Definition (defined by the JobDetail), but may be performed simultaneously a number of different JobDetail,

@JsonProperty

This annotation for the attribute, the name of the action attribute is serialized as another name, such as the sequence into trueName attribute name, @ JsonProperty (value = "name")

@JsonIgnoreProperties

Example Usage: @JsonIgnoreProperties (ignoreUnknown = true)
The annotation is placed above the class name, role: to ignore class does not exist in the time when the received field

@Async

Notes, making the process can be called asynchronously

@XmlRootElement

This class is annotated to describe a top-level XML element.

@CrossOrigin

To solve cross-domain problems
which @CrossOrigin in two parameters:
Origins: allow domain list accessible
maxAge: caching the maximum time to prepare before the response (in seconds).

Guess you like

Origin www.cnblogs.com/tangjian07/p/11755908.html