随笔分类 -  异常处理

摘要:使用@Value的类,在spring中,不能直接通过new 操作符来使用,而是应该通过spring的注解 @Autowired 来使用 必须使用在bean的实例中,例如被@Controller,@Service,@Component等注解的类里边。 方法1 @Component @Data publ 阅读全文
posted @ 2022-04-11 11:09 coder_Fish 阅读(1603) 评论(0) 推荐(0)
摘要:在IDEA 启动项目的时候 如果报以下错误 对应的修复方案 Error running ‘Application’: Command line is too long. Shorten command line for SpringBootMainApplication or also for Ap 阅读全文
posted @ 2022-04-11 09:20 coder_Fish 阅读(498) 评论(0) 推荐(0)