일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- inorder
- CES 2O21 참가
- 웹 용어
- classification
- web 사진
- tensorflow
- broscoding
- KNeighborsClassifier
- CES 2O21 참여
- web 개발
- html
- 머신러닝
- 결합전문기관
- 대이터
- Keras
- 자료구조
- mglearn
- java역사
- web
- bccard
- 재귀함수
- postorder
- discrete_scatter
- cudnn
- web 용어
- vscode
- paragraph
- pycharm
- C언어
- 데이터전문기관
- Today
- Total
목록[IT]/Spring (28)
bro's coding
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bBFkL2/btq6f7TuAwU/RT7yeo1f1hLoKNquIY5oWK/img.png)
package org.kosta.model; import org.springframework.stereotype.Repository; // spring container에게 객체 생성 하도록 명시 // @Repository는 영속성 계층의 bean 생성할 때 명시하는 annotation @Repository // spring container가 해당 클래스로 객체를 생성할 때 bean id는 소문자로 시작하는 클래스명으로 만든다. public class MemberDAOImpl implements MemberDAO { @Override public void register(String memberInfo) { System.out.println(memberInfo + "등록"); } }
as를 사용한다 package org.kosta.model.vo; public class ProductVO { private String productNo;// 실재 db 컬럼명은 product_no, 인스턴스 변수명과 일치하지 않음 private String name; private String maker; private int price; public ProductVO() { super(); } public ProductVO(String name, String maker, int price) { super(); this.name = name; this.maker = maker; this.price = price; } public String getProductNo() { return productNo..
where id=#{value} @Override public Map findMemberMapById(String id) { return template.selectOne("member.findMemberMapById", id); } package test; import java.util.Map; import org.kosta.model.MemberDAO; import org.springframework.context.support.ClassPathXmlApplicationContext; public class TestMyBatis { public static void main(String[] args) { ClassPathXmlApplicationContext ctx = new ClassPathXmlA..
MyBatis Framework 영속성 계층 프레임워크(persistence layer framework) JDBC Framework 자바 어플리케이션과 데이터베이스 연동시 반복적인 작업(Connection, PreparedStatement, ResultSet, close)을 프레임워크에서 지원하여 생산성이 향상 SQL을 mapper xml에 정의하고 어플리케이션에서 사용
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/eHZopt/btq5OaRvhON/V0NS7aHDl1rjVD7TvtUlp1/img.png)
select id, password, name, address from mybatis_member where id=#{value} where name=#{name} and address=#{address} package org.kosta.model; import java.util.List; public interface MemberDAO { public MemberVO findMemberById(String id); public List findMemberByNameAndAddress(MemberVO paramVO); } package org.kosta.model; import java.util.List; import org.mybatis.spring.SqlSessionTemplate; public cl..
package org.kosta.aop; import org.aspectj.lang.ProceedingJoinPoint; /** * 횡단 관심사항을 정의한 클래스 * around advice를 테스트 한다 * around advice는 4가지 advice를 모두 적용할 수 있는 advice다. * (before, after, after-returning, after-throwing) * * @author broth * */ public class AroundLoggingService { public Object logging(ProceedingJoinPoint point) throws Throwable { // System.out.println("***AOP 적용 before advice***"); //..