V
V
vitya_brodov2021-07-23 16:21:05
Spring
vitya_brodov, 2021-07-23 16:21:05

Why doesn't Spring boot see the annotations?

Why doesn't Spring boot see the annotations?
How can the problem be solved?
(Annotations glow red)
code:

import org.modelmapper.ModelMapper;
import org.springframework.context.annotation.*;
@Configuration
public class MapperUtil {

    @Bean 
    public ModelMapper getMapper() {
        return new ModelMapper();
    }

}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Roo, 2021-07-23
@xez

There's a "Maven" tab on the right side of the idea. And there is such an icon with two arrows like an ouroboros: "Reload All Maven Projects".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question