我正在使用Spring Boot 2.2.2,它具有旧的Spring和依赖项,但现在相同的代码不起作用 package com.project.productapp.controller; import com.project.productapp.service.ProductService; import com.project.productapp.repository.UserRepository; import org.springframework.beans.factory.annotation.Au…