spring boot @Autowired 注入的服务为null
技术博客 http://idea.coderyj.com/
@Autowired
注入的服务都是null 经过排查发现 是函数的权限不够,应该把private
改成 public
解决问题@PostMapping("handelAllCharge")
private JsonUtil handelAllCharge(@RequestBody Charger2FireDoorBean charger2FireDoorBean)
@PostMapping("handelAllCharge")
public JsonUtil handelAllCharge(@RequestBody Charger2FireDoorBean charger2FireDoorBean)