Notice
Recent Posts
Recent Comments
ยซ   2024/12   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Archives
Today
In Total
๊ด€๋ฆฌ ๋ฉ”๋‰ด

A Joyful AI Research Journey๐ŸŒณ๐Ÿ˜Š

[14] 230413 ํฌํŠธํด๋ฆฌ์˜ค 14์ผ ์ฐจ Thu) ๋ฐฑ์—”๋“œ, ํ”„๋ก ํŠธ์—”๋“œ, ๋‚ด์šฉ ์ฒดํฌ๋ฆฌ์ŠคํŠธ [K-๋””์ง€ํ„ธ ํŠธ๋ ˆ์ด๋‹ 74์ผ] ๋ณธ๋ฌธ

๐Ÿ’–My Bootcamp Projects Logsโœจ/My Portfolio Website

[14] 230413 ํฌํŠธํด๋ฆฌ์˜ค 14์ผ ์ฐจ Thu) ๋ฐฑ์—”๋“œ, ํ”„๋ก ํŠธ์—”๋“œ, ๋‚ด์šฉ ์ฒดํฌ๋ฆฌ์ŠคํŠธ [K-๋””์ง€ํ„ธ ํŠธ๋ ˆ์ด๋‹ 74์ผ]

yjyuwisely 2023. 4. 13. 07:00

2304013 Thu 74th class

ํ˜„์‹ค์—์„œ ์“ฐ์ด๋Š” ๊ฒƒ: spring crud, spring security, ajax, db

์šฐ์„  MySQL ์—ฐ๊ฒฐ ํ•ด๊ฒฐํ•˜๋„๋ก ํ•˜๊ธฐ [์™„๋ฃŒ]
์‹œ๊ฐ„ ์ƒ ๊ทธ ํ›„ ๋‚ด์šฉ ์ตœ์ข…์ ์œผ๋กœ ์ˆ˜์ •ํ•˜๊ณ , ์‚ฌ์ง„ ๋„ฃ๊ธฐ

- ๋‚ด์šฉ ์ˆ˜์ • ํ•  ๊ฒƒ

  1. ์„น์…˜๋“ค "์ด๋ฏธ์ง€" ์ฑ„์›Œ ๋„ฃ์Œ
  2. ํฌํŠธํด๋ฆฌ์˜ค๋„ ํ”„๋กœ์ ํŠธ ์„น์…˜์— ๋„ฃ๊ธฐ, "์„น์…˜: ํ”„๋กœ์ ํŠธ1 ์„ค๋ช…" ์ฑ„์›Œ ๋„ฃ๊ธฐ [์™„๋ฃŒ]
  3. ๋‚ด์šฉ ์ ์ ˆํ•œ์ง€ ์ฒดํฌํ•˜๊ธฐ [์™„๋ฃŒ]

- ํ”„๋ก ํŠธ์—”๋“œ ํ•  ๊ฒƒ

  1. ๋ฐฑ์—”๋“œ ๊ณต๊ฐ„ ์„น์…˜: ๋กœ๊ทธ์ธ, ํšŒ์›๊ฐ€์ž… ์œˆ๋„์šฐ ํฌ๊ธฐ ๋ฐ˜์‘ํ˜•์œผ๋กœ ๋ฐ”๊พธ๊ธฐ
  2. ๊ธฐ์ˆ  ์„น์…˜: ์ด๋ฏธ์ง€๋กœ ๋ฐ”๊พธ๊ธฐ (์ƒ๊ฐ) [๋ฐ‘์— ๋ฐฑ์—”๋“œ ์›น์‚ฌ์ดํŠธ ๋„ฃ์œผ๋ฉด์„œ ์•ˆ ๋„ฃ๊ธฐ๋กœ ํ•จ]
  3. ํฌํŠธํด๋ฆฌ์˜ค: ๋ฉ”๋‰ด ํฐํŠธ ์ƒ‰์ƒ ์ด๋™ํ•˜๋ฉด ๋ณ€๊ฒฝ๋˜๊ฒŒ ๋งŒ๋“ค๊ธฐ(์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ)
  4. ์ „์ฒด ์„น์…˜: ๋ฐ”ํƒ• ๋ˆ„๋ฅด๋ฉด ์งง๊ฒŒ ๋ฐ‘์œผ๋กœ ๋‚ด๋ ค๊ฐ”๋‹ค ์˜ฌ๋ผ๊ฐ€๋Š” ๋””์ž์ธ
  5. ๋ฐ˜์‘ํ˜•์ผ ๋•Œ ๋œจ๋Š” ๋ฉ”๋‰ด๋ฐ” ํฌ๊ธฐ, ์ƒ‰์ƒ, ์•„์ด์ฝ˜ ๋ณ€๊ฒฝํ•˜๊ธฐ
  6. ์ปจํ…Œ์ด๋„ˆ ์•„์šฐํ„ฐ ์ง™๊ฒŒ ์ฑ„์šฐ๊ธฐ
  7. three.js ํ™œ์šฉ

- ๋ฐฑ์—”๋“œ (์Šคํ”„๋ง๋ถ€ํŠธ - ์Šคํ”„๋ง ์‹œํ๋ฆฌํ‹ฐ) ํ•  ๊ฒƒ ๋ฆฌ์ŠคํŠธ

  1. MySQL ์—ฐ๊ฒฐํ•˜๊ธฐ (์•„๋‹ˆ๋ฉด h2) [์™„๋ฃŒ]
  2. ๊ฒŒ์‹œํŒ (๋ฉ”๋ชจ์žฅ) ์ ์šฉ
  3. ๋กœ๊ทธ์ธ, ๋กœ๊ทธ์•„์›ƒ ๋ฉ”์‹œ์ง€ ์ƒ๋‹จ์— ๋œจ๊ฒŒ ํ•˜๊ธฐ [์™„๋ฃŒ]
  4. ๊ด€๋ฆฌ์ž์˜ ํšŒ์› ๊ด€๋ฆฌ ํŽ˜์ด์ง€ ๋งŒ๋“ค๊ธฐ
  5. ํšŒ์›์˜ My Page ๋งŒ๋“ค๊ณ  [์™„๋ฃŒ]
  6. ํšŒ์›์˜ ํšŒ์›์ •๋ณด์ˆ˜์ • ๊ตฌํ˜„ํ•˜๊ธฐ

๋ฉฐ์น  ๋™์•ˆ ํ—ค๋งธ๋Š”๋ฐ MySQL์— ํšŒ์›๊ฐ€์ž… ๋ฐ์ดํ„ฐ๊ฐ€ ๋“ค์–ด๊ฐ”๋‹ค!

SQL ์ฝ”๋“œ)
users > user

CREATE DATABASE users;
-- show databases;

-- ์‚ฌ์šฉ์ž ์ƒ์„ฑ
CREATE USER root@localhost
	IDENTIFIED BY 'admin';
    
-- DB ๊ถŒํ•œ ๋ถ€์—ฌ
GRANT ALL PRIVILEGES
	ON users.*
    TO root@localhost;
    

CREATE TABLE user (
    id INT NOT NULL AUTO_INCREMENT,
    firstName VARCHAR(255),
    lastName VARCHAR(255),
    email VARCHAR(255),
    password VARCHAR(255),
    PRIMARY KEY (id)
);

desc users;

์ง‘์—์„œ ํ•  ๊ฒƒ: MySQL ๋‹ค์‹œ ์„ค์น˜
https://kyuhyuk.kr/article/spring-boot/2020/07/19/Spring-Boot-JPA-MySQL-Board-Write-Post

 

[Spring Boot] ๊ฒŒ์‹œํŒ ๊ตฌํ˜„ ํ•˜๊ธฐ (1) - ๊ธ€ ์ž‘์„ฑ & ๊ธ€ ๋ชฉ๋ก ์ถœ๋ ฅ

์ด๋ฒˆ ์‹œ๊ฐ„์—๋Š” Spring Boot์™€ MySQL๋ฅผ ์—ฐ๋™ํ•˜๊ณ  ๊ฒŒ์‹œํŒ ๊ธฐ๋Šฅ์˜ ๊ธ€ ์ž‘์„ฑ๊ณผ ๊ธ€ ๋ชฉ๋ก ์ถœ๋ ฅ์„ ๊ตฌํ˜„ํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค . MySQL Installation MySQL ์— ์ ‘์†ํ•˜์—ฌ 'Download'๋กœ ๋“ค์–ด๊ฐ‘๋‹ˆ๋‹ค. MySQL Community (GPL) Downloads ๋กœ ๋“ค์–ด

kyuhyuk.kr


- ๊ฐœ์ธํ”„๋กœ์ ํŠธ 1
(์ฃผ๋ง์— ๋ณต์Šต ๊ฒธ ์Šคํ”„๋ง์œผ๋กœ ๋งŒ๋“ค๊ธฐ :) )

  1. ๋ฐฑ์—”๋“œ ์ ์šฉํ•˜๊ณ  ํฌํŠธํด๋ฆฌ์˜ค์˜ "์„น์…˜: ํ”„๋กœ์ ํŠธ1 ์„ค๋ช…" ์ฑ„์›Œ ๋„ฃ๊ธฐ
  2. ๋ฐฑ์—”๋“œ ์ ์šฉํ•˜๊ณ  ๊นƒํ—ˆ๋ธŒ ๋‚ด ํ”„๋กœ์ ํŠธ ์„ค๋ช… ์“ฐ๊ธฐ

- ๊ฐœ์ธํ”„๋กœ์ ํŠธ 1

  1. ๋ฐฑ์—”๋“œ ์ ์šฉํ•˜๊ณ  ํฌํŠธํด๋ฆฌ์˜ค์˜ "์„น์…˜: ํ”„๋กœ์ ํŠธ1 ์„ค๋ช…" ์ฑ„์›Œ ๋„ฃ๊ธฐ
  2. ๋ฐฑ์—”๋“œ ์ ์šฉํ•˜๊ณ  ๊นƒํ—ˆ๋ธŒ ๋‚ด ํ”„๋กœ์ ํŠธ ์„ค๋ช… ์“ฐ๊ธฐ
  3. ์‚ฌ์ง„ ์˜ฌ๋ฆฌ๊ธฐ ๊ธฐ๋Šฅ ๊ตฌํ˜„ํ•˜๊ธฐ (์‚ฌ์ง„ ์˜ฌ๋ฆฌ๊ธฐ => ๋ฐ˜์‘ํ˜•์œผ๋กœ ๋งŒ๋“ฆ)
  4. ์„ธ๋ถ€ ๊ฒŒ์‹œํŒ๋“ค ๋‹ค ์ฑ„์›Œ๋„ฃ๊ธฐ
  5. ํ”„๋ก ํŠธ์—”๋“œ: ํšŒ์›๊ฐ€์ž…, ๋กœ๊ทธ์ธ ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ ์™„๋ฃŒํ•˜๊ธฐ

728x90
๋ฐ˜์‘ํ˜•
Comments