我目前的设置:@Configurationclass ApplicationProperties(SpringApplication.java:780) [spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringAppli
我正在尝试在用Kotlin编写的SpringBoot应用程序中创建Map<String, List<String>>类型的对象。ignoreNestedProperties=false); nested exception is java.lang.NullPointerException@ConfigurationProperties@Component var myNewMa
我想配置3个线程池参数,所以我在config.How中编写了vale来在spring中注入它们bean.Here是我的yml文件配置。spring: pool1: maxPoolSize: 10 corePoolSize@ConfigurationProperties(prefix = "spring.threadpool")
public class PoolConfig