Spring Boot Masterclass – Create service and repository for Expense 06

Hello, in this post we will create Service and Repository for Expense. Let’s begin. First, create an ExpenseRepository under src/main/java/in/bushansirgur/expenseyoutube/repository package

ExpenseRepository.java




Next, create ExpenseSerive and ExpenseServiceImpl under src/main/java/in/bushansirgur/expenseyoutube/service package

ExpenseService.java

ExpenseServiceImpl.java

That’s it for this post, let me know in the comment section if you have any questions on this.

Thanks
Bushan SC

About the author

Bushan Sirgur

Well, I am Bushan Sirgur from Banglore, India. Currently, I am working as a Software Developer in a Service Base Company. I am interested in JAVA/J2EE, Angular 2, JavaScript, jQuery, MongoDB.

View all posts

3 Comments

  • hi sir i am getting error while extending JpaRepository interface.
    *************************
    APPLICATION FAILED TO START
    *************************
    Description:
    A component required a bean named ‘entityManagerFactory’ that could not be found.
    Action:

    Consider defining a bean named ‘entityManagerFactory’ in your configuration.

    Please Answer.
    I have also make a comment on video on youtube.
    Thank You.

Leave a Reply to Bushan Sirgur Cancel reply

Your email address will not be published. Required fields are marked *