카멜케이스

it/Spring 2018. 1. 16. 00:28 Posted by 하얀나다

aaa_bbb를  aaaBbb로 변경.



context-mapper.xml 에서 하기거 추가


<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">

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

<property name="mapperLocations" value="classpath:/aa/sqlmap/**/*.xml" />

<property name="configLocation" value="classpath:/aa/conf/mybatis-conf.xml" />

</bean>


mybatis-conf.xml에서 하기거 추가


<configuration>

<settings> 

<setting name="mapUnderscoreToCamelCase" value="true" />

</settings>

<typeAliases>

<typeAlias alias="homeVO" type="com.aa.sample.service.HomeVO" />

</typeAliases>

</configuration>