I have created a simple unit test but IntelliJ is incorrectly highlighting it red. marking it as an error
No beans?
simple you have to do 2 steps
@Autowired
@Resource
==>> change @Autowired to @Resource