Ask Your Question
3

Can Spring Boot wire repositories but not services?

asked 2023-05-02 18:28:15 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-02 18:40:02 +0000

devzero gravatar image

Spring Boot can wire both repositories and services. In fact, Spring Boot's auto-configuration and dependency injection allow for easy wiring of both repositories and services. However, Spring Boot provides extra support for repositories through its JPA and data access auto-configurations. This may make the process of wiring repositories simpler than wiring services if your application primarily involves data access or persistence.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-02 18:28:15 +0000

Seen: 17 times

Last updated: May 02 '23