Common Annotations in Java

@BeforeClass - represents performed before any public static void method performed in a class

@AfterClass - represents performed after any public static void method performed in a class

@Before - represents executed before any public void method using @Test notes marked execution

@After - represents executed after public void any method of execution using @Test comment marked

@Test - public void method using the annotation label will be represented as a test method

@Configuration:
1. that the current configuration class is a class, the bean source method.
2. @Con fi guration arranged AppCon fi g of beanDe fi nitioin attribute assigned full type, to ensure AppCon fi g cglib type can be converted into type.
3. @Con fi guration arranged AppCon fi g transition from conventional types of cglib agent type, generated after cglib proxy object, by the method of the proxy object interceptors can solve the time-dependent call occurs between AppCon fi g internal methods of the bean to acquire from the container to avoid the emergence of more cases.

Continuously updated ~

Released four original articles · won praise 0 · Views 47

Guess you like

Origin blog.csdn.net/qq_41442590/article/details/105292237