이클립스 james관련 에러날 때 (oracle 12c)

🐶🦶·2022년 8월 10일
1

정리

목록 보기
4/9

1. default.properties

################## BatchJob Section ##################
enableBatch=N

추가해준다.

2. spring-batch.xml

<task> 를 모두 주석처리 한다.
<bean> 제외

3. context.xml

src/main/webapp/META-INFcontext.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&amp;verifyServerCertificate=false&amp;useSSL=true&amp;requireSSL=true&amp;useUnicode=true&amp;connectionCollation=utf8mb4_unicode_ci&amp;characterSetResults=utf8&amp;characterEncoding=utf8&amp;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&amp;verifyServerCertificate=false&amp;useSSL=true&amp;requireSSL=true&amp;useUnicode=true&amp;connectionCollation=utf8mb4_unicode_ci&amp;characterSetResults=utf8&amp;characterEncoding=utf8&amp;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&amp;verifyServerCertificate=false&amp;useSSL=true&amp;requireSSL=true&amp;useUnicode=true&amp;connectionCollation=utf8mb4_unicode_ci&amp;characterSetResults=utf8&amp;characterEncoding=utf8&amp;zeroDateTimeBehavior=convertToNull"
             maxActive="5" maxIdle="5" minIdle="5"/>             
             
            
</Context>

4. spring-jpa.xml

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> <== 요기 추가

profile
Live positive!

0개의 댓글