摘要:在项目中有时需要在项目启动之后进行预加载数据(例如配置在数据中的常量数据),这是可以使用spring boot 提供的CommandLineRunner接口 新建类实现CommandLineRunner接口,同时使用 @Component 注解 1、如果项目中需要多个预加载的动作,可以新建多个类并且
阅读全文
随笔分类 - Spring boot
摘要:通过模板的形式生成excel文件时,在开发时使用 能够正常读取文件,放到centos服务器上,程序报错 cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/
阅读全文
浙公网安备 33010602011771号