################## BatchJob Section ##################
enableBatch=N
추가해준다.
<task>
를 모두 주석처리 한다.
<bean>
제외
src/main/webapp/META-INF
에 context.xml
을 생성해주고
DB정보를 등록해준다.
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<!-- 운영 -->
<!-- <Resource name="jdbc/NaonekpDS" auth="Container"
type="javax.sql.DataSource" username="naongw_pro" password="비밀번호"
driverClassName="org.mariadb.jdbc.Driver"
url="jdbc:mariadb://사설/공인ip:port번호/KOREAZINC_GW_PRO?autoReconnect=true&verifyServerCertificate=false&useSSL=true&requireSSL=true&useUnicode=true&connectionCollation=utf8mb4_unicode_ci&characterSetResults=utf8&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull"
maxActive="5" maxIdle="5" minIdle="5"/> -->
<!-- 개발 -->
<Resource name="jdbc/NaonekpDS" auth="Container"
type="javax.sql.DataSource" username="naongw_pro" password="비밀번호"
driverClassName="org.mariadb.jdbc.Driver"
url="jdbc:mariadb://사설/공인ip:port번호/KOREAZINC_GW_PRO?autoReconnect=true&verifyServerCertificate=false&useSSL=true&requireSSL=true&useUnicode=true&connectionCollation=utf8mb4_unicode_ci&characterSetResults=utf8&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull"
maxActive="5" maxIdle="5" minIdle="5"/>
<Resource name="jdbc/ERPDS" auth="Container"
type="javax.sql.DataSource" username="naongw_pro" password="비밀번호"
driverClassName="org.mariadb.jdbc.Driver"
url="jdbc:mariadb://사설/공인ip:port번호/KOREAZINC_GW_PRO?autoReconnect=true&verifyServerCertificate=false&useSSL=true&requireSSL=true&useUnicode=true&connectionCollation=utf8mb4_unicode_ci&characterSetResults=utf8&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull"
maxActive="5" maxIdle="5" minIdle="5"/>
</Context>
spring-jpa.xml수정
<!-- 엔티티 매니저 팩토리 -->
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="springdataSource"/>
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="generateDdl" value="false" />
<property name="databasePlatform" value="org.hibernate.dialect.OracleDialect"></property> <== 요기 추가
</bean>
</property>
<property name="persistenceUnitName" value="James" />
<!-- Default is "classpath:META-INF/persistence.xml" -->
<property name="persistenceXmlLocation" value="classpath*:META-INF/persistence.xml"/>
</bean>
<property name="databasePlatform" value="org.hibernate.dialect.OracleDialect"></property> <== 요기 추가