问题:
Encountered invalid @Scheduled method 'test1': Only no-arg methods may be annotated with @Scheduled
解决:
出现这个错误主要是@Scheduled注解下的方法带有参数,把@Scheduled注解下的方法的参数去掉就可以了
出现这个错误主要是@Scheduled注解下的方法带有参数,把@Scheduled注解下的方法的参数去掉就可以了
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。