Create a project that contains @repository, @service and @controller

3

I do not know how to create a new project with spring initializr that contains @repository, @service, and @controller, so that the controller dependency is necessary check the following box, here a screenshot:

but for the others that must be marked ?, or how to add them manually

According to the comment of @luiggiMendoza, the other 2 are from the core, but which framework?

    
asked by deluf 28.04.2017 в 15:38
source

1 answer

1

The annotations you mention are within the org.springframework.stereotype package found in the Spring Context library. This bookstore is part of the heart of Spring. That is, if you do not add this library, you simply can not work with Spring.

In summary, you do not need to mark a specific check to say that these libraries should be included. They are already added by default.

    
answered by 28.04.2017 / 17:30
source