[Spring] Spring 기본세팅 & Setting Test

[Spring] Spring 기본세팅 & Setting Test

< ?xml version = "1.0" encoding = "UTF-8" ? >

< beans xmlns = "http://www.springframework.org/schema/beans"

xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"

xmlns:mybatis - spring = "http://mybatis.org/schema/mybatis-spring"

xmlns:context = "http://www.springframework.org/schema/context"

xsi:schemaLocation = "http://mybatis.org/schema/mybatis-spring http://mybatis.org/schema/mybatis-spring-1.2.xsd

http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd

http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd" >

< bean id = "hikariConfig" class = "com.zaxxer.hikari.HikariConfig" >

< property name = "driverClassName"

value = "com.mysql.cj.jdbc.Driver" > < / property >

< property name = "jdbcUrl"

value = "jdbc:mysql://localhost:3306/bitdb?serverTimezone=Asia/Seoul&useSSL;=false" > < / property >

< property name = "username" value = "bit04" > < / property >

< property name = "password" value = "1234" > < / property >

< / bean >

< bean id = "dataSource" class = "com.zaxxer.hikari.HikariDataSource"

destroy - method = "close" >

< constructor - arg ref = "hikariConfig" / >

< / bean >

< bean id = "sqlSessionFactory"

class = "org.mybatis.spring.SqlSessionFactoryBean" >

< property name = "dataSource" ref = "dataSource" > < / property >

from http://dreamingdreamer.tistory.com/92 by ccl(A) rewrite - 2020-03-07 06:21:54

댓글

이 블로그의 인기 게시물

데이터 바인딩 추상화 - propertyEditor

[샤니마스 SPRING PARTY2020] THE IDOLM @ STER SHINY COLORS SPRING...

Spring Web Form