草庐IT

invocation

全部标签

Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property报错

错误背景笔者在建一个新的Springcloud项目时,出现的报错提示为:Invocationofinitmethodfailed;nestedexceptionisjava.lang.IllegalArgumentException:Property错误原因经过网上搜索后,主要说是controller和xml有重名方法,或者启动类有问题,如@SpringBootApplication()的括号里不能有东西。检查后,锁定到是我在config类里已经写了@MapperScan()的注解:@Configuration@EnableTransactionManagement@MapperScan("c

Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property报错

错误背景笔者在建一个新的Springcloud项目时,出现的报错提示为:Invocationofinitmethodfailed;nestedexceptionisjava.lang.IllegalArgumentException:Property错误原因经过网上搜索后,主要说是controller和xml有重名方法,或者启动类有问题,如@SpringBootApplication()的括号里不能有东西。检查后,锁定到是我在config类里已经写了@MapperScan()的注解:@Configuration@EnableTransactionManagement@MapperScan("c