본문 바로가기

Web/Spring

2013.10.05 스프링 시작

context-spring.xml 을 만들고

 

beans에 있는 Spring 관련 url 등

 

 

//DB 설치후 게정 만들고 권한 주는 방법.

 

create user mybaits identified by mybatis$

 

grant connect, resource, dba to mybatis;

 

SLQ 만들기

 

 CREATE TABLE SHOP (
              SHOP_NO NUMBER NOT NULL,
              SHOP_NAME VARCHAR2(100 BYTE),
              SHOP_LOCATION CLOB,
              SHOP_STATUS VARCHAR2(20 BYTE),
              CONSTRAINT SHOP_PK PRIMARY KEY (SHOP_NO)
           );


  INSERT INTO SHOP (SHOP_NO,SHOP_NAME,SHOP_LOCATION,SHOP_STATUS)
              VALUES (1,'Toy Store','A Tower Seocho dong','Y');

    INSERT INTO SHOP (SHOP_NO,SHOP_NAME,SHOP_LOCATION,SHOP_STATUS)
              VALUES (2,'Play Store','B Tower Seocho dong','Y');

   INSERT INTO SHOP (SHOP_NO,SHOP_NAME,SHOP_LOCATION,SHOP_STATUS)
              VALUES (3,'Mom''s Store','C Tower Seocho dong','Y');

 

 

<servlet-name>spring</servlet-name>
  <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

 

이대로 설정을 하게되면 Default 로 servlet-application_context.xml로 지정이 된다.

init-param 이란녀석을 설정을 해주게 되면 Web.xml로 하게 되는것

 

 

 

 

 

 

'Web > Spring' 카테고리의 다른 글

Spring MVC 와 DispatcherServlet  (0) 2014.11.25
MyBatis를 이용한 실습 (1)  (0) 2013.10.12
기초 설정  (0) 2013.09.14
SpringWeb2 만들기  (0) 2013.09.14
SpringWeb1 만들기  (0) 2013.09.07