ํšŒ์›๊ฐ€์ž… 3

6. ํšŒ์›๊ฐ€์ž…

6. ํšŒ์›๊ฐ€์ž… user์ €์žฅ์†Œ ์ƒ์„ฑ(UserRepository.java) package com.example.repository; import com.example.entity.User; import org.springframework.data.jpa.repository.JpaRepository; public interface UserRepository extends JpaRepository{ } user์„œ๋น„์Šค, impl ์ƒ์„ฑ ํšŒ์›๊ฐ€์ž…์„ ์œ„ํ•œ save ์ƒ์„ฑ(UserService.java, UserServiceImpl.java) UserService์— insertUser๋ฅผ ์ƒ์„ฑํ•˜๊ณ  UserServiceImpl.java์—์„œ addํ•œ๋‹ค. UserService.java package com.example.serv..

Vue ์ผ์ง€ #22 (20211005) ํšŒ์›๊ฐ€์ž…

22. ํšŒ์›๊ฐ€์ž… -ํšŒ์› ๊ฐ€์ž… ๋ฐฑ์—”๋“œ : #45 ํšŒ์›๊ฐ€์ž… * axios ์„ค์น˜(cmd) *ํšŒ์›๊ฐ€์ž… ํšŒ๋ฉด ๊ตฌ์„ฑ(Join.vue) ํšŒ์› ๊ฐ€์ž… ์ด๋ฉ”์ผ ์•”ํ˜ธ ์•”ํ˜ธ ํ™•์ธ ์ด๋ฆ„ ๊ณ ๊ฐ ํŒ๋งค์ž ๊ด€๋ฆฌ์ž *ํšŒ๋ฉด ํ™•์ธ *ํšŒ์›๊ฐ€์ž… ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ์ด๋ฒคํŠธ ๊ตฌ์„ฑ(Join.vue) *console.log(response); ๋ฅผ ์ด์šฉํ•ด ๋ฒ„ํŠผ ํด๋ฆญ ํ›„ ์ „๋‹ฌ๊ฐ’ ํ™•์ธํ•œ๋‹ค. import axios from 'axios' export default { methods:{ async handleJoin(){ const url = "/REST/api/member/join"; const headers = {"Content-Type":"application/json"} const body = { email : this.email, passwd : this..

node, vue 2021.10.05

Spring ์ผ์ง€ #45 (20211005) ํšŒ์›๊ฐ€์ž…

45. ํšŒ์›๊ฐ€์ž… -ํšŒ์›๊ฐ€์ž… */member/join post ์ƒ์„ฑ(HomeController.java) //ํšŒ์›๊ฐ€์ž… //127.0.0.1:8080/REST/api/member/join //{"email":"", "passwd":"", "name":"", "role":""} @RequestMapping(value = "/member/join", method = {RequestMethod.POST}, consumes = MediaType.ALL_VALUE, produces = MediaType.APPLICATION_JSON_VALUE) public Map memberJoinPOST( @RequestBody Member member) { Map map = new HashMap(); try{ BCryptPass..

Spring 2021.10.05