bitcocom/gsm31

MemberService.java

Opened this issue · 0 comments

package com.example.bootgsm01.service;

import com.example.bootgsm01.entity.Member;
import com.example.bootgsm01.repository.MemberRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MemberService {
    @Autowired
    private MemberRepository memberRepository;
    public Member userRegister(Member member){
        return memberRepository.save(member);// insert, update SQL~
    }
}