202010-10 解决SpringBoot中使用@Async注解失效的问题 错误示例,同一个类中使用异步方法:packagecom.xqnode.learning.controller;importcom.fasterxml.jackson.core.JsonProcessingException;importorg.springframework.scheduling.annotation.Async;importorg.springframework.web.bind.annotation.GetMapping;importorg.springframework.web.bind.annotation.RequestMapping;importorg.springframework.web.bind.annotation.RestController;importjava.util.HashMap;import... 继续阅读 >
202009-27 Spring @Value注解失效问题解决方案 项目使用的是SSM体系,spring的配置如下,配置没问题,因为我发现其他文件中的@Value可以使用,只有一处@Value失效了。spring-servlet.xml<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:mvc="http://www.springframework.org/schema/mvc"xmlns:context="http://www.springframework.org/sch... 继续阅读 >