목록2024/07/22 (2)
wintertreey 님의 블로그
db작업create table springboard( num int primary key, author varchar(10) not null, title varchar(30) not null, content text, bwrite datetime default now(), readcnt int default 0); 프로젝트 생성 프로젝트 세팅application.propertiesspring.application.name=sprweb17mybatis_miniboardserver.port=80spring.thymeleaf.cache=false#mariadb server connectspring.datasource.driver-class-name=org.mariadb.jdbc.Driverspring.d..
세팅작업 properties build 체크. build 고쳤을경우 build> refresh 필! package pack.model;import jakarta.persistence.Column;import jakarta.persistence.Entity;import jakarta.persistence.Id;import jakarta.persistence.Table;import lombok.Data;@Data@Entity@Table(name="sangdata")public class Sangpum { @Id private int code; @Column(nullable = false) private String sang; private int su; private int dan; // 변수 ff..