Service.java

 package com.customerapp.practice.service;


import com.customerapp.practice.model.Customer;

import com.customerapp.practice.repository.CustomerRepository;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;


@Service

public class CustomerService {


    @Autowired

    private CustomerRepository customerRepository;


    public Customer createCustomer(Customer customer) {

        return customerRepository.save(cust

omer);

    }

}

Comments

Popular posts from this blog

Restaurant

TimePass

UIUXFILES