본문 바로가기

분류 전체보기104

[스프링부트] 홈페이지 만들기[2] - map 개념, 게시판 1. bbslist : 데이터 가져오기 Bbs.xml select seq, id, ref, step, depth, title, content, wdate, del, readcount from (select row_number()over(order by ref desc, step asc) as rnum, seq, id, ref, step, depth, title, content, wdate, del, readcount from bbs where 1=1 and title like concat('%', #{search}, '%') and del=0 and content like concat('%', #{search}, '%') and del=0 and id=#{search} and del=0 order by .. 2023. 3. 27.
[스프링부트] 홈페이지 만들기[1] - 로그인, 회원가입 1. 백앤드 Member.xml select count(*) from member where id=#{id} insert into member(id, pwd, name, email, auth) values(#{id}, #{pwd}, #{name}, #{email}, 3) select id, name, email from member where id=#{id} and pwd=#{pwd} MemberDao.java package mul.cam.a.dao; import org.apache.ibatis.annotations.Mapper; import org.springframework.stereotype.Repository; import mul.cam.a.dto.MemberDto; @Mapper @Reposit.. 2023. 3. 27.
[스프링부트] DB 연결, member 불러오기 DB설정하기 1. pom에 의존성 추가하기 com.fasterxml.jackson.core jackson-core 2.14.1 com.fasterxml.jackson.core jackson-databind 2.14.1 org.springframework.boot spring-boot-starter-jdbc org.mybatis.spring.boot mybatis-spring-boot-starter 3.0.1 org.mybatis mybatis-spring 3.0.1 org.mybatis mybatis 3.5.11 mysql mysql-connector-java 8.0.29 2. application.properties 설정하기 server.port=3000 spring.datasource.hikari.d.. 2023. 3. 26.
[스프링부트] ioc 제어의역전, @RestController ioC 제어의역전 IOC (Inversion of Control) 또는 제어의 역전은 스프링 프레임워크에서 매우 중요한 개념입니다. 스프링 프레임워크는 IOC 패턴을 기반으로 구현되어 있으며, 스프링의 핵심 기능 중 하나는 DI (Dependency Injection)라는 기술을 사용하여 객체 간의 의존성을 자동으로 처리하는 것입니다. 스프링 프레임워크에서는 일반적으로 개발자가 객체를 생성하고 관리하는 방식과 달리, 스프링 컨테이너라는 것이 객체의 생성과 관리를 담당합니다. 개발자는 필요한 객체를 정의하고 컨테이너에 등록하면, 컨테이너는 이 객체를 생성하고 관리합니다. 이를 통해 객체 간의 결합도가 낮아지고 유연성이 높아집니다. 예를 들어, A 객체가 B 객체에 의존하는 경우, 개발자는 일반적으로 B 객.. 2023. 3. 26.
"/" (슬래시)의 의미 = 생략 URL 경로를 지정할 때, 경로의 첫 번째 문자로 /를 사용하면, 웹 애플리케이션의 루트 경로(http://localhost:8080/)를 생략하여 경로를 지정할 수 있습니다. 예를들어, @RequestMapping("/fileUpload")은 http://localhost:8080/fileUpload 경로를 지정하는 것과 동일합니다. 2023. 3. 26.
[스프링부트] HTTP, REST API, STATELESS STATEFUL, MIME TYPE 참조 유튜브 : 생활코딩, 메타코딩Resource https://www.youtube.com/watch?v=vHhWcTyJoS0 https://getinthere.tistory.com/19 스프링부트 with JPA 블로그 5강 - HTTP1.1 체험하기 1. POSTMAN 설치 https://www.postman.com/downloads/ Postman | The Collaboration Platform for API Development Simplify workflows and create better APIs – faster – with Postman, a collaboration platform for API development. www.postman.com 2. HTTP1.1 ge getint.. 2023. 3. 25.