100일 챌린지/빅데이터기반 인공지능 융합 서비스 개발자 93

Day 72 - SpringBoot에서 Mybatis 사용하기

application.propertiesspring.datasource.driver-class-name=com.mysql.cj.jdbc.Driverspring.datasource.url=jdbc:mysql://localhost:3306/xespring.datasource.username=scottspring.datasource.password=tigerlogging.level.web=debuglogging.level.com.gimhae.sts06=debugDeptVo@Data@NoArgsConstructor@AllArgsConstructor@Builderpublic class DeptVo { int deptno; String dname,loc;}DeptDao(Interf)public interface D..

Day 72 - Spring Boot 로 프로그램 만들기

CRED 프로그램 만들기lombok 연결하기mysql 사용하기application.propertiesspring.datasource.driver-class-name=com.mysql.cj.jdbc.Driverspring.datasource.url=jdbc:mysql://localhost:3306/xespring.datasource.username=scottspring.datasource.password=tigerProjectApplication@RestController@SpringBootApplicationpublic class Sts04Application { public static void main(String[] args) { SpringApplication.run(Sts04Applicatio..

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..