전체 글
-
(박스몰 프로젝트) 3 - 인텔리제이 thymeleaf + mysql + mybatis DB 연결하기개발/프로젝트 2024. 7. 19. 01:14
★ 오늘의 할 일1. 서버 데이터값 출력해보기 서버 데이터값 출력을 위해 질문게시판 qnaboard db를 만들었다. 오늘은 서버 연결 후 값 출력이 목표이기 때문에 정말 데이터 확인용으로 만들었다. DB는 MySQL 로 설정했고, MyBatis 로 자바 코드와 SQL 쿼리 분리하여 xml 파일로 진행하고자 했다. 화면 구조는 다음과 같이 기능별로 패키지를 나눴다. 객체를 다음과 같이 만들과 getter/setter 도 만들어줬다.인텔리제이 단축키가 참 편한 거 같다.. ㅎ 컨트롤러 만들고 서비스 만들고,신기한 건 이전에는 아무 생각 없이 Repository 만들고 했는데 Mapper 를 연결시켜서 한다고 한다. 이렇게 매퍼 인터페이스도 만들면 다음과 같이 매퍼 설정해주면 된다..
-
(박스몰 프로젝트) 2 - 부트스트랩 연결하기 + 브랜드 로고 제작 + 파비콘 설정개발/프로젝트 2024. 7. 7. 23:24
DB Navigator 연결했으니 부트스트랩으로 디자인에 대한 부분을 덜고자 했다. (디자인 못하는 1인) https://startbootstrap.com/template/shop-homepage Start Bootstrap startbootstrap.com 제품 소개가 목적인 사이트이니 해당 부트스트랩 선택 후 진행했다. html 구조를 사용하는 인텔리제이로서 thymeleaf 사용하기로 했다.(배우면서 만들어야 할 듯..ㅎ) 우선 부트스트랩 압축 파일 풀어주고 다음에 적절하게 압춘 푼 파일 넣어줬다. 그런데 파비콘 경로는 제대로 불러오는데, css 와 js 못 불러오는 오류가 발생했다...ㅠㅠ 나의 친구 챗지피티에게 물어보니 원래 기본 세팅이 ../static/bootstrap ~~~ 이렇게 ..
-
(박스몰 프로젝트) 1 - 계획 세우기개발/프로젝트 2024. 7. 7. 20:14
개인 프로젝트 박스몰 웹페이지 만들기로 함 1. 개발의 범위 어느 정도 할 것인지?오랜만의 개발이므로 최소 필수 개발만 하되,필요 시, 기능 추가 예정 2. 제공해야 할 목록 [사용자단]- 회사 소개 ★ 박스 정보 제공용★ 박스 검색 ★ 계산 기능 제공 ★ 찜 기능 - 로그인 기능 제공 (간편 로그인 고민)- 비회원 주문- 회원가입- 질문 게시판 [관리자단]- 회원 승인- 회원 등급- 질문 확인 ※ 참고 페이지https://www.boxmall.net/product/product_list.php?code=000010http://www.boxcafe.co.kr/ 3. 세부계획사용자단 디자인 - 부트스트랩 사용개발언어 java개발툴 intellJ 계획은 이랬으나.. 실제로 인텔리J를 툴로서 스프링부트를 연..
-
(김영한의 실전 자바 - 중급 1편) 5 - 내용 정리카테고리 없음 2024. 5. 28. 16:49
[1. Object 클래스] * 정적 의존관계 vs 동적 의존관계 - 정적 의존관계 : 컴파일 시간에 결정, 주로 클래스 간의 관계 의미 프로그램 실행하지 않고 클래스 내에서 사용하는 타입만 보면 의존관계 알 수 있음 - 동적 의존관계 : 프로그램 실행하는 런타임에 확인할 수 있다. 어떤 인자로 어떤 객체가 전달될 지는 프로그램 실행해야 알 수 있다. ex) ObjectPrinter.print(Object obj) 에서 어떤인자로 어떤 객체가 전달 될 지 프로그램 실행해야 알 수 있음Car 인스턴스가 넘어오거나 Dog 인스턴스가 넘어오는지 실행해야만 알 수 있다. ■ equals()* 동일성(Identity) vs 동등성(Equality) - 동일성(완전히 같음) : == 연산자를 사용해서 두 객체의..
-
(김영한의 실전 자바 - 기본편) 4 - 내용 정리카테고리 없음 2024. 5. 28. 15:15
[1. 클래스와 데이터]클래스에 정의된 변수들 = 멤버변수, 필드 멤버 변수 : 특정 클래스에 소속된 멤버이기 때문에 필드 : 데이터 항목을 가르키는 전통적인 용어 사용자가 직접 정의하는 사용자 정의 타입을 위해서는 설계도가 필요한데, 그게 바로 클래스이다. 클래스를 사용해서 실제 메모리에 만들어진 실체를 객체 또는 인스턴스라 한다. new 를 사용하면 객체(인스턴스)를 만들 수 있다. Student student1 에서 Student 는 student1의 변수 타입이다. 객체는 클래스에서 정의한 속성과 기능을 가진 실체이다. 인스턴스랑 객체랑 같은 말이지만 관계를 명확히 할 떄는 인스턴스라는 말을 많이 사용한다. ex) student1은 Student 의 인스턴스이다. 모든 인스턴스는 객체..
-
(김영한의 자바 입문) 3 - 내용 정리개발/Java 2024. 5. 28. 13:47
※ 입문의 경우 기초적인 내용이 많아 참고하면 좋을 내용이나 까먹었던 내용 위주로 적는다. ※ [ ] 내용은 강의 자료 번호 및 목차를 나타낸다. [3. 연산자]0으로 나누기는 수학에서 허용하지 않아 프로그래밍에서도 작동하지 않는다..equals() : 문자열 비교 메서드 [6. 스코프, 형변환]* 형변환(Casting) : 금속이나 다른 물질을 녹여서 특정한 형태나 모양으로 만드는 과정을 의미한다.형변환은 묵시적 vs 명시적 형변환이 있다. 개발자가 직접 형변환을 하는 것이 명시적 형변환이다. ex) double doubleValue = 1.5;int intvalue = 0; intValue = (int) doubleValue; 만약 기존 범위를 초과해서 표현하게 되면 - 로 전혀 다른 숫..
-
(개발지식) 13 - 인텔리제이 단축키(윈도우 기준)개발/개발지식 2024. 4. 8. 16:57
■ 인텔리제이 단축키ctrl + w : 줄 선택 shift + f10 : 이전 실행 다시 하기 shift + f6 : 변수 한 번에 변경하기 ★ alt + insert : 생성자 생성하기 ★ soutv : syso + result ctrl + e : 최근 봤던 파일 목록 보기 + 해당 화면에서 enter 시 그전 화면으로 돌아감 alt + enter : 람다로 바꾸기, 만약 없는 메서드에서 치면 메서드 만들어주기 ctrl + n : 파일 찾기 ctrl + alt + n : 줄 합치기 psvm : main 실행문 만들기 ctrl + shift + f10 : 현재 코드 다시 실행하기 ★ ctrl + shift + enter : 자동으로 ; 넣어주기 ★ alt + enter : class 파일명 바꾸기 ..
-
(git) 3 - github 기본개발/git 2024. 4. 4. 10:56
■ git 기본 세팅 git config --list : 깃 관련된 환경 설정 확인 가능 git config --global -e : 에디터에서 확인하기 (나가는 방법은 esc 누르고 :q! 누르기) code . : visual studio 열기 git config --global core.editor "code" : 에디터 창에 git config 띄워짐 git config --global user.name '이름' : 글로벌 이름 설정 git config --global user.email '이메일" git config user.name : 이름 확인 git config user.email : 이메일 확인 git config --global core.autocrlf true : \r 삭제하기 ※ gi..