일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- Java#java#자바#다오#디티오#브이오#dao#dto#vo
- 항해99 #항해플러스 #주니어개발자 #주니어개발자역량강화 #주니어개발자멘토링 #개발자사이드프로젝트 #코딩부트캠프 #코딩부트캠프후기
- 국비지원#국비교육#국비지원자바#국비교육자바#css#HTML#JAVA
- IntelliJ#인텔리제이#인텔리#단축키
- #
- spring#Spring#RequestBody#ResponseBody
- Spring#spring#스프링#스프링프레임워크#스프링자동주입#스프링생성자#스프링기본#국비지원#국비교육#국비지원스프링
- 국비지원자바#국비교육자바#국비지원java#국비교육java#자바스크립트#프론트엔드
- 개발자도서#개발자책#도메인#DDD#도메인주도개발시작하기#개발스터디#
- db#데이터베이스#오라클#sql
- Java#정처기#비트연산자#정보처리기사
- tibero#티베로#이중화#failvover
- 항해플러스#항해#항해플러스3기#회고
- 개발자#it도서#도메인#DDD#ddd
- Resource #
- 국비지원JAVA
- 국비지원JAVA#국비교육JAVA#국비지원자바#국비교육자바#JSP#SERVLET#서블릿#
- 국비지원JAVA#국비지원자바#프로그랭#JSP#국비지원JSP#국비교육JSP#웹개발자#코딩
- 자바#Java#배열예시#연습#기초다지기
- Java#컴파일러#자바컴파일러#
- #java#JAVA#프로그래밍#웹개발자
- Java#java#메모리영역#클래스로더#가비지컬렉터
- java
- html#HTML#프론트엔드#개발자#코딩#국비지원#국비교육#국비지원프론트엔드#국비지원HTML#국비지원html#국비프론트엔드
- Java#JAVA#매개변수
- 프로그래밍
- 자바
- Spring#spring#스프링#스프링프레임워크#스프링의존성주입#스프링생성자#스프링기본#국비지원#국비교육#국비지원스프링
- 쿼리스트링#쿼리문자열#바인딩
- 국비지원#국비교육
- Today
- Total
목록분류 전체보기 (196)
개린이 개발노트
Bean을 정의할 때 주입할 객체는 생성자를 통한 주입이나 setter를 통한 주입을 사용했다. Spring에서는 객체를 주입할 때 자동으로 주입될 수 있도록 설정이 가능하다. 자동 주입은 이름, 타입, 생성자를 통할 수 있으며 auto wire라는 용어로 부른다. 이름을통한주입 byName: 빈 객체의 property 이름과 정의된 Bean의 이름이 같은 것을 찾아 자동으로 주입함. package sanghoon.main; import org.springframework.context.support.ClassPathXmlApplicationContext; import sanghoon.beans.TestBean1; public class MainClass { public static void main(S..
▶ XML이란? XML(Extensible Markup Language)은 W3C에서 개발된, 다른 특수한 목적을 갖는 마크업 언어를 만드는데 사용하도록 권장하는 다목적 마크업 언어이다. XML은 SGML의 단순화된 부분집합으로, 다른 많은 종류의 데이터를 기술하는 데 사용할 수 있다. ▶ XML의 특징 XML은 다른 목적의 마크업 언어를 만드는 데 사용되는 다목적 마크업 언어이다. XML은 다른 시스템끼리 다양한 종류의 데이터를 손쉽게 교환할 수 있도록 해준다. XML은 새로운 태그를 만들어 추가해도 계속해서 동작하므로, 확장성이 좋다. XML은 데이터를 보여주지 않고, 데이터를 전달하고 저장하는 것만을 목적으로 한다. XML은 텍스트 데이터 형식의 언어로 모든 XML 문서는 유니코드 문자로만 이루어진..
Maven이란? 프로젝트를 진행하게 되면 단순히 자신이 작성한 코드만으로 개발하는 것이 아니라 많은 라이브러리들을 활용해서 개발을 하게 된다. 이 때 사용되는 라이브러리들의 수가 수십개가 훌쩍 넘어버리는 일이 발생해 이 많은 라이브러리들을 관리하는 것이 힘들어지는 경우가 종종 발생하곤 한다. Maven은 이러한 문제를 해결해 줄수 있는 도구이다. Maven은 내가 사용할 라이브러리 뿐만 아니라 해당 라이브러리가 작동하는데 필요한 다른 라이브러리들까지 관리하여 네트워크를 통해 자동으로 다운 받아준다. Maven은 프로젝트의 전체적인 라이프사이클을 관리하는 도구이며, 많은 편리함과 이점이 있어 널리 사용되고 있다. 기존에는 Ant가 많이 사용되었지만 Maven이 Ant를 넘어서 더 많은 개발자들이 사용하게 ..
뷰 View 논리적인 가상테이블: 실제데이터는 존재하지않고 테이블에 대한 sql 문만 존재 저장공간에서도 유리 뷰를 이용하면 sql-> 코드복잡단순화(접근 자체가 쉬움) 보안성이 뛰어남 권한부여하기(시스템계정에서) GRANT CREATE VIEW TO SCOTT; SCOTT계정 접속 뷰(view)생성하는 형식 CREATE [OR REPLACE] VIEW 뷰이름(컬럼명, 컬럼명) // [OR REPLACE]는 생략 가능 AS (뷰에 저장할 SELECT문) CREATE OR REPLACE -> 만약 생성할 뷰가 없으면 뷰가 생성되고, 생성할 뷰가 있으면 교체 연습해보기 CREATE VIEW VIEW_EMP AS (SELECT * FROM ENP WHERE DEPTNO=20); CREATE VIEW V_EMP..
1. 데이터 베이스 제약조건 not null unique 1-1. 키본키 PRIMARY KEY 각레코드들을 구별해주는 필드 중복내용 입력 불가능 NULL 불가능 CREATE TABLE PK_TEST( ID VARCHAR(20) PRIMARY KEY, PW VARCHAR(20) ); DESC PK_TEST; -- 레코드 추가 INSERT INTO PK_TEST VALUES('A', '1234'); -- 레코드 추가 (ID가 기본키이므로 중복내용 입력 안됨 - 오류) INSERT INTO PK_TEST VALUES('A', 'ZXCV'); SELECT * FROM PK_TEST; --레코드 추가 (ID가 기본키이므로 NULL 안됨 - 오류) INSERT INTO PF_TEST VALUES(NULL, '123..
컬렉션 주입 Bean을 정의할 때 주입해야 하는 멤버가 컬렉션인 경우 컬렉션이 관리할 객체를 초기에 설정할 수 있다. 여기에 List, Map, Set, Property 사용 package sanghoon.main; import java.util.List; import java.util.Map; import java.util.Set; import org.springframework.context.support.ClassPathXmlApplicationContext; import sanghoon.beans.DataBean; import sanghoon.beans.TestBean; public class MainClass { public static void main(String[] args) { // TO..
Bean을 정의할 때 Bean 객체가 가지고 있을 기본 값을 생성자가 아닌 Setter 메서드를 통해 주입할 수 있다. name: 데이터를 주입할 property의 이름 value: 기본 자료형 및 문자열을 주입할 때 사용하는 속성 ref: 객체의 주소값을 주입할 때 사용하는 속성 package sanghoon.main; import org.springframework.context.support.ClassPathXmlApplicationContext; import sanghoon.beans.TestBean; public class MainClass { public static void main(String[] args) { // TODO Auto-generated method stub TestBean ..
의존성 주입(Dependency Injection) 의존성 주입은 Spring에서 아주 중요한 개념이자 장점 bean객체 생성시 bean 객체가 관리할 값이나 객체를 주입하는 것을 의미 bean 객체 생성 후 bean 객체가 가질 기본값을 자바코드로 설정하는 것이 아닌 bean을 정의하는 xml코드에서 정의하는 개념 Bean을 정의할 때 constructor-arg 태그를 이용해 주입하게 되면 생성자를 통해 주입할 수 있음. Bean 객체를 생성할 때 객체의 기본값을 생성자를 통해 주입가능. package sanghoon.main; import org.springframework.context.support.ClassPathXmlApplicationContext; import sanghoon.beans...
UPDATE 수정문 형식 ↓ UPDATE 수정할 테이블이름 SET 수정할 컬럼=수정할데이터,수정할컬럼=수정할데이터(어떤컬럼에서 어떤데이터를) WHERE 조건식 예제 UPDATE 연습 SET LOC ='SEOUL' WHERE DNAME='SALES' DNAME이 SALES인 곳에 컬럼이 LOC인 곳에 있는 SEOUL을 SALES로 바꾸어라 연습테이블에 부서번호가 40번인 부서명을 JAVA 지역을 BUSAN으로 변경하시오. --여러개 컬럼 바꿀때는 그냥 콤마 찍으면됨. UPDATE 연습 SET DNAME='JAVA', LOC='BUSAN' WHERE DEPTNO=40; UPDATE 연습 SET (DNAME,LOC) = (SELECT DNAME,LOC FROM DEPT WHERE DEPTNO=40) WHERE..
BeanPostProcessor Bean 객체를 정의할 때 init-method 속성을 설정하면 객체가 생성될 때 자동으로 호출될 메서드를 지정할 수 있다. 이때 BeanPostProcessor 인터페이스를 구현한 클래스를 정의하면 Bean 객체를 생성할 때 호출될 init 메서드 호출을 가로채 다른 메서드를 호출할 수 있도록 할 수 있다. Spring에서는 객체가 생성될 때 init-method로 지정된 메서드가 호출되기 전, 후에 다른 메서드를 호출할수 있도록 지원하고 있다. 관련예제 ↓ 메인클래스 package sanghoon.main; import org.springframework.context.support.ClassPathXmlApplicationContext; import sanghoon...