본문 바로가기

프로젝트/개인

(12)
3. jpa로 테이블 생성하기 1.user entity package com.cos.blog.model; import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.CreationTimestamp; import javax.persistence.*; import java.sql.Timestamp; @Entity//user 클래스가 MySQL에 테이블 생성이 된다 public class User { @Id //primary key @GeneratedValue(strategy = GenerationType.IDENTITY) // 프로젝트에서 연결된 db의 넘버링 전략을 따라간다. private int id; // 시퀀스,auto_increment @Col..
2.yaml, yml(야믈..?) 설정 출처 : https://getinthere.tistory.com/20 스프링부트 with JPA 블로그 6강 - yaml 설정 1. yaml 이란 이 분이 설명을 너무 잘해두셔서 ㄷㄷ https://www.inflearn.com/questions/16184 yaml파일 이란 무엇인가요 - 인프런 질문 - yaml파일 이란 무엇인가요 안녕하세요 강사님 너무 질문이 많아서 죄송 getinthere.tistory.com 1.yml 설정 web.xml, root-context.xml, servlet-context.xml의 합본 application.yml server: port: 8000 servlet: context-path: /blog encoding: charset: UTF-8 enabled: true f..
1. mysql 환경세팅하기 https://dev.mysql.com/downloads/windows/installer/5.7.html 버전 5.7 관리자: root cos1234 add user: cos cos1234 database name: blog root, 1234로 접속 drop user cos; -- 유저이름@아이피주소 create user 'cos'@'%' identified by 'cos1234'; -- ON DB이름.테이블명 -- TO 유저이름@아이피주소 GRANT ALL PRIVILEGES ON *.* TO 'cos'@'%'; CREATE DATABASE blog CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; use blog; ini파일 C:\ProgramData\My..
0.프로젝트 생성 IDE : 인텔리제이 얼티밋 23.01.02 OAUTH2 CLIENT :쓰면 편한데 이번엔 직접 노가다로 카카오 로그인 해보고 다음에 사용