This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tistory.luahius.web; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RequestMethod; | |
import com.tistory.luahius.service.Board; | |
import com.tistory.luahius.service.Boardservice; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page language="java" contentType="text/html; charset=UTF-8" | |
pageEncoding="UTF-8"%> | |
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>BOARD ADD</title> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tistory.luahius.service; | |
public class Board { | |
private int boardNo; | |
private String boardPw; | |
private String boardTitle; | |
private String boardContent; | |
private String boardUser; | |
private String boardDate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 테이블 생성 | |
CREATE TABLE board ( | |
board_no INT(10) NOT NULL COMMENT '글 번호', | |
board_title VARCHAR(50) NOT NULL COMMENT '제목', | |
board_content TEXT NOT NULL COMMENT '내용', | |
board_user VARCHAR(50) NOT NULL COMMENT '사용자', | |
board_pw VARCHAR(20) NOT NULL COMMENT '비밀번호', | |
board_date DATE NOT NULL COMMENT '작성날짜', | |
PRIMARY KEY (board_no) | |
)DEFAULT CHARSET=euckr |
NewerOlder