在我的申请中,我不断得到这个例子。
<bean id="oracleLobHandler" class="org.springframework.jdbc.support.lob.OracleLobHandler"
p:nativeJdbcExtractor-ref="nativeJdbcExtractor"/>
<bean id="nativeJdbcExtractor" class="org.springframework.jdbc.support.nativejdbc.C3P0NativeJdbcExtractor"/>
<bean id="jobRepository"
class="org.springframework.batch.core.repository.support.JobRepositoryFactoryBean"
p:lobHandler-ref="oracleLobHandler" p:dataSource-ref="dataSource"
p:databaseType="oracle" p:tablePrefix="BATCH_"
p:transactionManager-ref="transactionManager"
p:isolationLevelForCreate="ISOLATION_READ_COMMITTED"/>
这是ojdbc6-12.1.0.1
的我的spring bean定义。
<Table id="idTestTable" visible="true" items="{/}">
我在tomcat lib文件夹中有<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>SAPUI5 single file template | nabisoft </title>
<script src="https://openui5beta.hana.ondemand.com/resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-libs="sap.m"
data-sap-ui-bindingSyntax="complex"
data-sap-ui-compatVersion="edge"
data-sap-ui-preload="async"></script>
<!-- XMLView -->
<script id="myXmlView" type="ui5/xmlview">
<mvc:View
controllerName="MyController"
xmlns="sap.m"
xmlns:core="sap.ui.core"
xmlns:mvc="sap.ui.core.mvc">
<Table id="idTestTable" visible="true" items="{/value}">
<columns>
<Column id="idColName">
<Text text="Name" />
</Column>
<Column id="idColAddress">
<Text text="Address" />
</Column>
</columns>
<items>
<ColumnListItem>
<cells>
<ObjectIdentifier text="{ContactName}" />
<Text text="{Address}" />
</cells>
</ColumnListItem>
</items>
</Table>
</mvc:View>
</script>
<script>
sap.ui.getCore().attachInit(function () {
"use strict";
//### Controller ###
sap.ui.controller("MyController", {
onInit : function () {
var oModel = new sap.ui.model.json.JSONModel("https://cors-anywhere.herokuapp.com/services.odata.org/V3/Northwind/Northwind.svc/Customers?$format=json");
sap.ui.getCore().setModel(oModel);
}
});
//### THE APP: place the XMLView somewhere into DOM ###
sap.ui.xmlview({
viewContent : jQuery("#myXmlView").html()
}).placeAt("content");
});
</script>
</head>
<body class="sapUiBody">
<div id="content"></div>
</body>
</html>
jar,也在我的classpath中。我尝试了一些谷歌解决方案,但似乎没有任何效果。
任何建议
答案 0 :(得分:1)
您正在使用c3po本机JDBC提取程序,您可能应该使用DBCP本机jdbc提取程序。