SpringBoot集成XXL-Job启动报非法反射WARNING: An illegal reflective access operation has occurred

xxl-job-core版本:2.3.1

场景:

WARNING: An illegal reflective access operation has occurred
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

分析:

1、是 groovy 依赖的版本导致

解决:

1、排除 xxl-job 中的 groovy 重新引入即可

		
		
			com.xuxueli
			xxl-job-core
			2.3.1
			
				
					org.codehaus.groovy
					groovy
				
			
		
		
		
			org.codehaus.groovy
			groovy
			3.0.8
		

你可能感兴趣的:(SpringBoot,异常和开发经验总结,分布式,spring,boot)