Add springBoot closure with mainClass setting