@Scope(value=ConfigurableBeanFactory.SCOPE_PROPTOTYPE)
this is send DingDing method message.
@SpringBootApplication public class Application{ public static void main(String [] args){ SpringApplication.run(Application.class,args); } }
@Configuration @ConditionalOnClass(DataSource.class) class MySQLAutoConfiguration { //... }
@Bean @ConditionalOnBean(name="dataSource") LocalContainerEntityManagerFactoryBean entityManagerFactory(){ //... } @Bean @ConditionalOnMissingBean public MyBean myBean(){ //... }
@Bean @ConditionalOnProperty(name="alipay",havingValue="on") Alipay alipay(){ return new Alipay(); }
@ConditionalOnResource(resources = "classpath:website.properties") Properties addWebsiteProperties(){ //... }
@ConditionalOnWebApplication HealthCheckController healthCheckController(){ //... }
@Bean @ConditionalException("${localstore} && ${local == 'true'}") LocalFileStore store(){ //... }
@Conditioanl(CustomConditioanl.class) CustomProperties addCustomProperties(){ //... }