Spring/Spring-eclipse 20

[spring] security 0. DB생성, pom.xml작성

_spring_project2에 만들 예정 1. DB 생성 및 권한 부여( mysql workbench 이용 ) 1. springtestdb 생성 2. springuser에게 springtestdb의 모든 권한 부여 2. springtestdb에 table 생성 ( 명령 프롬프트 ) member table 생성 : id대신 email로 통합할 예정 board table 생성 auth_member table 생성 : 권한 테이블 forigen key로 auth_membet랑 member연결하기 mysql -uspringuser -pmysql use springtestdb; create table member( email varchar(100) not null, pwd varchar(1000) not nul..

[spring] 파일 입출력

1. fileUpload 라이브러리 -> pom.xml에 추가 - 필요한 라이브러리 commens-fileUpload 1.4 commins-io 2.11.0 thumbnailator 0.4.14 tika-core 1.28 ( tika : 확장자 확인 용도 ) tika-parsers 1.28 commons-fileupload commons-fileupload 1.4 commons-io commons-io 2.11.0 net.coobird thumbnailator 0.4.14 org.apache.tika tika-core 1.28 org.apache.tika tika-parsers 1.28 ▲ tica-core, tica-parsers의 1.28 버전 ▼ tica-core, tica-parsers의 2.4...

[spring] 댓글 1. 댓글 작성

== detail.jsp == 1. board폴더의 detail.jsp에 댓글부분 추가 작성 위치 : body태그안, if문 뒤 - 추가 ${board.writer } post writer 작성자 content for commet mod_date - 전체 Board Detail Page bno ${board.bno } title ${board.title } writer ${board.writer } read_Count ${board.read_count } rag_date ${board.reg_date } content ${board.content } 목록 수정 삭제 ${ses.id } post writer 작성자 content for commet mod_date == boardComment.js == 2..

[spring] 댓글 0. 테이블 생성, STS 기본 생성

1. DB에 테이블 생성 mysql -uspringuser -pmysql use springtest create table comment( cno int not null auto_increment, bno int not null, writer varchar(100) not null, content text, reg_date datetime default now(), mod_date datetime default now(), primary key(cno) ); 2. comment 라이브러리 추가 = pom.xml에 추가 jackson-databind 2.13.0 jackson-format 2.13.0 jackson-databind 2.13.0 com.fasterxml.jackson.core jackson-..

[spring] 2. 회원 가입

1. home.jsp에 회원가입 버튼 생성 회원가입 2. 회원가입 페이지 생성 : view폴더안 user폴더생성 후 signup.jsp생성! SignUp Page id : password : name : email : home : age : 회원가입 3. UserController에 메서드 생성 package com.myweb.www.controller; import javax.inject.Inject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework..

[spring] BCryptPasswordEncoder : 패스워드 암호화 클래스

1. 다운로드 spring-security-core 5.5.3 spring-security-web 5.5.3 spring-security-config 5.5.3 https://mvnrepository.com/search?q=spring-security- org.springframework.security spring-security-core 5.5.3 org.springframework.security spring-security-web 5.5.3 org.springframework.security spring-security-config 5.5.3 2. pom.xml에 추가 - 추가된 전체 pom.xml 4.0.0 com.myweb www spring war 1.0.0-BUILD-SNAPSHOT 11 ..