天道酬勤,学无止境

常用注解

Summary series of commonly used annotations: @Order annotation

@Order annotation The @Order annotation is mainly used to control the loading order of configuration classes.Sample code: package com.runlion.tms.admin.constant; public class AService { } package com.runlion.tms.admin.constant; public class BService { } package com.runlion.tms.admin.constant; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.annotation.Order; @Configuration @Order( 2 ) public class AConfig { @Bean public AService AService() { System.out.println( "AService is loaded" ); return new

2021-05-18 21:05:15    分类:博客    程序开发   常用注解