spring-autoconfiguration

Spring custom @Enable annotation meta-annotated with @ComponentScan

岁酱吖の 提交于 2020-05-26 05:30:30
问题 I'm trying to write my own @Enable annotation for Spring framework, which should be used as follows: package com.example.package.app; @SpringBootApplication @com.example.annotations.EnableCustom("com.example.package.custom") public class MyApplication {} I followed Component scan using custom annotation, but this poses several limitations: I cannot make the base package property dynamic, i.e. I cannot pass "com.example.package.base" , but need to pre-define the package at the configuration. I

Spring custom @Enable annotation meta-annotated with @ComponentScan

不打扰是莪最后的温柔 提交于 2020-05-26 05:30:16
问题 I'm trying to write my own @Enable annotation for Spring framework, which should be used as follows: package com.example.package.app; @SpringBootApplication @com.example.annotations.EnableCustom("com.example.package.custom") public class MyApplication {} I followed Component scan using custom annotation, but this poses several limitations: I cannot make the base package property dynamic, i.e. I cannot pass "com.example.package.base" , but need to pre-define the package at the configuration. I

Spring custom @Enable annotation meta-annotated with @ComponentScan

旧巷老猫 提交于 2020-05-26 05:29:45
问题 I'm trying to write my own @Enable annotation for Spring framework, which should be used as follows: package com.example.package.app; @SpringBootApplication @com.example.annotations.EnableCustom("com.example.package.custom") public class MyApplication {} I followed Component scan using custom annotation, but this poses several limitations: I cannot make the base package property dynamic, i.e. I cannot pass "com.example.package.base" , but need to pre-define the package at the configuration. I