100일 챌린지 106

Day 72 - spring boot 로 웹사이트 만들기

jdk 17 버전 받기이클립스 최신버전 받기https://spring.io/tools[Spring | Toolsspring.io](https://spring.io/tools)[New]>[New Spring Starter Project]Dependencies: Spring Webpom.xmldependency 추가하기 org.springframework.boot spring-boot-starter-web com.mysql mysql-connector-j 8.4.0 포트번호 바꾸기환경설정에 대한 모든건 application properties..

semiproject 배포하기

1. github에서 프로젝트 다운받기https://github.com/skyke74/semiProj_hotels2. vagrant 다운받기https://developer.hashicorp.com/vagrant/downloads[Install | Vagrant | HashiCorp DeveloperExplore Vagrant product documentation, tutorials, and examples.developer.hashicorp.com](https://developer.hashicorp.com/vagrant/downloads)3. 프로젝트 경로에서 vagrant 시작하기4. vagrant 파일 열어서 수정하기Vagrant.configure("2") do |config|config.vm.bo..

Day 48 - Spring 4.x & MyBatis Lombok 사용하기

h2 database enginehttps://www.h2database.com/html/main.html[H2 Database EngineH2 Database Engine Welcome to H2, the Java SQL database. The main features of H2 are: Very fast, open source, JDBC API Embedded and server modes; in-memory databases Browser based Console application Small footprint: around 2.5 MB jar file size Suppwww.h2database.com](https://www.h2database.com/html/main.html)Spring Le..

Day 53 - Spring 5.x guest file upload/download 프로그램 만들기 -

1. H2 table 만들기create table guest(num int primary key auto_increment,name varchar(10),file varchar(255),path varchar(255));insert into guest (name,file,path) values ('test1',null,null);insert into guest (name,file,path) values ('test2',null,null);insert into guest (name,file,path) values ('test3',null,null);commit;2. spring legacy project3. pom.xml 업데이트3-1. java version up 1.8 ..

Day 49 - Spring 5.x CRUD 프로그램 만들기

1. H2 table 만들기create table dept(deptno int primary key auto_increment,dname varchar(50),loc varchar(50));create table emp(empno int primary key auto_increment,ename varchar(50),pay int,hiredate date,deptno int);insert into dept (dname,loc) values ('본사','서울');insert into dept (dname,loc) values ('경남지사','경남');insert into dept (dname,loc) values ('부산지사','부산');commit;insert into emp (ename,pay,hire..

Day 46 - iBatis/MyBatis (데이터베이스 연동을 위한 ORM 시스템)

pom.xml (라이브러리 추가) org.apache.ibatis ibatis-sqlmap 2.3.4.726 org.springframework spring-ibatis 2.0.8 provided sqlMapConfighttps://ibatis.apache.org/dtd/ empMapper.xml select * from emp38 order by empno desc EmpDaoIbatispackage com.gimhae.mvc.model;public class EmpDaoIbatis extends SqlMapClientDaoSupport implements EmpDao { @Override public Lis..

Day 46 - Spring ver 3. 프로젝트 만들기

기본세팅 STS.iniTemplate 정하기default 외의 템플릿을 다 지운 다음에 eclipse를 종료한다.  위의 파일을 다음의 경로에 저장한다.[[workspace]]\.metadata\.plugins\org.springsource.ide.eclipse.commons.content.core 이후 eclipse를 실행한다.위와 같이 legacy project 템플릿 란에 목록이 생긴다.Spring 3 문법controller에서 메세지 출력하기  url 매핑하기혹은 위와 같이 controller를 상속받지 않고 사용할 수 있다. POJO(Plain Old Java Project) 오래된 방식의 간단한 자바 오브젝트라는 말로서 Java EE 등의 중량 프레임워크들을 사용하게 되면서 해당 프레임워크에 ..