https://git.trustie.net/fhx569287825/aggregation-platform into web_backend_develope Conflicts: src/com/base/BaseController.java src/com/platform/controller/DataModelController.java src/com/platform/service/impl/MoveDataServiceImpl.java src/com/platform/service/impl/OracleExtractServiceImpl.java src/com/platform/utils/Constant.javaweb_backend_develope
commit
fead9d9371
@ -1,14 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="src" path="test"/>
|
<classpathentry kind="src" path="test"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0">
|
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
|
||||||
<attributes>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
|
||||||
<attribute name="owner.project.facets" value="jst.web"/>
|
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
|
||||||
</attributes>
|
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0"/>
|
||||||
</classpathentry>
|
<classpathentry kind="output" path="build/classes"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
|
</classpath>
|
||||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/Java"/>
|
|
||||||
<classpathentry kind="output" path="build/classes"/>
|
|
||||||
</classpath>
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/target
|
/target
|
||||||
/build
|
/build
|
||||||
/RemoteSystemsTempFiles
|
/RemoteSystemsTempFiles
|
||||||
/bin/
|
/bin/
|
||||||
.settings
|
.settings
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
!SESSION 2016-09-13 08:39:40.662 -----------------------------------------------
|
!SESSION 2016-09-13 08:39:40.662 -----------------------------------------------
|
||||||
eclipse.buildId=4.3.0.I20130605-2000
|
eclipse.buildId=4.3.0.I20130605-2000
|
||||||
java.version=1.8.0_91
|
java.version=1.8.0_91
|
||||||
java.vendor=Oracle Corporation
|
java.vendor=Oracle Corporation
|
||||||
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN
|
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN
|
||||||
Framework arguments: -product org.eclipse.epp.package.jee.product
|
Framework arguments: -product org.eclipse.epp.package.jee.product
|
||||||
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
|
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
|
||||||
|
|
||||||
!ENTRY org.eclipse.egit.ui 2 0 2016-09-13 08:40:07.850
|
!ENTRY org.eclipse.egit.ui 2 0 2016-09-13 08:40:07.850
|
||||||
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
|
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
|
||||||
user global configuration and to define the default location to store repositories: 'C:\Users\wuming'. If this is
|
user global configuration and to define the default location to store repositories: 'C:\Users\wuming'. If this is
|
||||||
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
|
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
|
||||||
EGit might behave differently since they see different configuration options.
|
EGit might behave differently since they see different configuration options.
|
||||||
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
|
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#GitProjectData
|
#GitProjectData
|
||||||
#Tue Sep 13 08:40:10 CST 2016
|
#Tue Sep 13 08:40:10 CST 2016
|
||||||
.gitdir=../.git
|
.gitdir=../.git
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,2 +1,2 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<typeInfoHistroy/>
|
<typeInfoHistroy/>
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<qualifiedTypeNameHistroy/>
|
<qualifiedTypeNameHistroy/>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<section name="Workbench">
|
<section name="Workbench">
|
||||||
<section name="org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart">
|
<section name="org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart">
|
||||||
<item value="2" key="layout"/>
|
<item value="2" key="layout"/>
|
||||||
<item value="true" key="group_libraries"/>
|
<item value="true" key="group_libraries"/>
|
||||||
<item value="<?xml version="1.0" encoding="UTF-8"?>
<packageExplorer group_libraries="1" layout="2" linkWithEditor="0" rootMode="1" workingSetName="">
<customFilters userDefinedPatternsEnabled="false">
<xmlDefinedFilters>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.StaticsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer_patternFilterId_RemoteSystemsConnections" isEnabled="true"/>
<child filterId="org.eclipse.mylyn.java.ui.MembersFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonSharedProjectsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.internal.ui.PackageExplorer.EmptyInnerPackageFilter" isEnabled="true"/>
<child filterId="org.eclipse.m2e.MavenModuleFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.ClosedProjectsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.EmptyLibraryContainerFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.PackageDeclarationFilter" isEnabled="true"/>
<child filterId="org.eclipse.pde.ui.BinaryProjectFilter1" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.LocalTypesFilter" isEnabled="false"/>
<child filterId="org.eclipse.pde.ui.ExternalPluginLibrariesFilter1" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.FieldsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer_patternFilterId_RemoteSystemsTempFiles" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonJavaProjectsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer_patternFilterId_.*" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.SyntheticMembersFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.ContainedLibraryFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.internal.ui.PackageExplorer.HideInnerClassFilesFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.ImportDeclarationFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonJavaElementFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.LibraryFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.CuAndClassFileFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.internal.ui.PackageExplorer.EmptyPackageFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonPublicFilter" isEnabled="false"/>
</xmlDefinedFilters>
</customFilters>
</packageExplorer>" key="memento"/>
|
<item value="<?xml version="1.0" encoding="UTF-8"?>
<packageExplorer group_libraries="1" layout="2" linkWithEditor="0" rootMode="1" workingSetName="">
<customFilters userDefinedPatternsEnabled="false">
<xmlDefinedFilters>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.StaticsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer_patternFilterId_RemoteSystemsConnections" isEnabled="true"/>
<child filterId="org.eclipse.mylyn.java.ui.MembersFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonSharedProjectsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.internal.ui.PackageExplorer.EmptyInnerPackageFilter" isEnabled="true"/>
<child filterId="org.eclipse.m2e.MavenModuleFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.ClosedProjectsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.EmptyLibraryContainerFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.PackageDeclarationFilter" isEnabled="true"/>
<child filterId="org.eclipse.pde.ui.BinaryProjectFilter1" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.LocalTypesFilter" isEnabled="false"/>
<child filterId="org.eclipse.pde.ui.ExternalPluginLibrariesFilter1" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.FieldsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer_patternFilterId_RemoteSystemsTempFiles" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonJavaProjectsFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer_patternFilterId_.*" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.SyntheticMembersFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.ContainedLibraryFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.internal.ui.PackageExplorer.HideInnerClassFilesFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.ImportDeclarationFilter" isEnabled="true"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonJavaElementFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.LibraryFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.CuAndClassFileFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.internal.ui.PackageExplorer.EmptyPackageFilter" isEnabled="false"/>
<child filterId="org.eclipse.jdt.ui.PackageExplorer.NonPublicFilter" isEnabled="false"/>
</xmlDefinedFilters>
</customFilters>
</packageExplorer>" key="memento"/>
|
||||||
<item value="1" key="rootMode"/>
|
<item value="1" key="rootMode"/>
|
||||||
<item value="false" key="linkWithEditor"/>
|
<item value="false" key="linkWithEditor"/>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,41 +1,41 @@
|
|||||||
<configuration scan="true">
|
<configuration scan="true">
|
||||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
||||||
<pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
|
<pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
|
||||||
</encoder>
|
</encoder>
|
||||||
<filter class="org.eclipse.m2e.logback.appender.ConsoleAppenderFilter"/>
|
<filter class="org.eclipse.m2e.logback.appender.ConsoleAppenderFilter"/>
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
<File>${org.eclipse.m2e.log.dir}/0.log</File>
|
<File>${org.eclipse.m2e.log.dir}/0.log</File>
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
||||||
<FileNamePattern>${org.eclipse.m2e.log.dir}/%i.log</FileNamePattern>
|
<FileNamePattern>${org.eclipse.m2e.log.dir}/%i.log</FileNamePattern>
|
||||||
<MinIndex>1</MinIndex>
|
<MinIndex>1</MinIndex>
|
||||||
<MaxIndex>10</MaxIndex>
|
<MaxIndex>10</MaxIndex>
|
||||||
</rollingPolicy>
|
</rollingPolicy>
|
||||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
||||||
<MaxFileSize>100MB</MaxFileSize>
|
<MaxFileSize>100MB</MaxFileSize>
|
||||||
</triggeringPolicy>
|
</triggeringPolicy>
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
||||||
<pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
|
<pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
|
||||||
</encoder>
|
</encoder>
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
<appender name="EclipseLog" class="org.eclipse.m2e.logback.appender.EclipseLogAppender">
|
<appender name="EclipseLog" class="org.eclipse.m2e.logback.appender.EclipseLogAppender">
|
||||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||||
<level>WARN</level>
|
<level>WARN</level>
|
||||||
</filter>
|
</filter>
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
<appender name="MavenConsoleLog" class="org.eclipse.m2e.logback.appender.MavenConsoleAppender">
|
<appender name="MavenConsoleLog" class="org.eclipse.m2e.logback.appender.MavenConsoleAppender">
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
<root level="INFO">
|
<root level="INFO">
|
||||||
<appender-ref ref="FILE" />
|
<appender-ref ref="FILE" />
|
||||||
<appender-ref ref="STDOUT" />
|
<appender-ref ref="STDOUT" />
|
||||||
<appender-ref ref="EclipseLog" />
|
<appender-ref ref="EclipseLog" />
|
||||||
<appender-ref ref="MavenConsoleLog" />
|
<appender-ref ref="MavenConsoleLog" />
|
||||||
</root>
|
</root>
|
||||||
|
|
||||||
<logger name="com.ning.http.client" level="INFO" />
|
<logger name="com.ning.http.client" level="INFO" />
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -1,57 +1,57 @@
|
|||||||
# RSE DOM Node
|
# RSE DOM Node
|
||||||
00-name=DESKTOP-65KJ4BV\:local.files
|
00-name=DESKTOP-65KJ4BV\:local.files
|
||||||
01-type=FilterPool
|
01-type=FilterPool
|
||||||
03-attr.default=true
|
03-attr.default=true
|
||||||
03-attr.deletable=true
|
03-attr.deletable=true
|
||||||
03-attr.id=local.files
|
03-attr.id=local.files
|
||||||
03-attr.nonRenamable=false
|
03-attr.nonRenamable=false
|
||||||
03-attr.owningParentName=null
|
03-attr.owningParentName=null
|
||||||
03-attr.release=200
|
03-attr.release=200
|
||||||
03-attr.singleFilterStringOnly=false
|
03-attr.singleFilterStringOnly=false
|
||||||
03-attr.singleFilterStringOnlyESet=false
|
03-attr.singleFilterStringOnlyESet=false
|
||||||
03-attr.stringsCaseSensitive=true
|
03-attr.stringsCaseSensitive=true
|
||||||
03-attr.supportsDuplicateFilterStrings=false
|
03-attr.supportsDuplicateFilterStrings=false
|
||||||
03-attr.supportsNestedFilters=true
|
03-attr.supportsNestedFilters=true
|
||||||
03-attr.type=default
|
03-attr.type=default
|
||||||
06-child.00000.00-name=My Home
|
06-child.00000.00-name=My Home
|
||||||
06-child.00000.01-type=Filter
|
06-child.00000.01-type=Filter
|
||||||
06-child.00000.03-attr.default=false
|
06-child.00000.03-attr.default=false
|
||||||
06-child.00000.03-attr.filterType=default
|
06-child.00000.03-attr.filterType=default
|
||||||
06-child.00000.03-attr.id=My Home
|
06-child.00000.03-attr.id=My Home
|
||||||
06-child.00000.03-attr.nonChangable=false
|
06-child.00000.03-attr.nonChangable=false
|
||||||
06-child.00000.03-attr.nonDeletable=false
|
06-child.00000.03-attr.nonDeletable=false
|
||||||
06-child.00000.03-attr.nonRenamable=false
|
06-child.00000.03-attr.nonRenamable=false
|
||||||
06-child.00000.03-attr.promptable=false
|
06-child.00000.03-attr.promptable=false
|
||||||
06-child.00000.03-attr.relativeOrder=0
|
06-child.00000.03-attr.relativeOrder=0
|
||||||
06-child.00000.03-attr.release=200
|
06-child.00000.03-attr.release=200
|
||||||
06-child.00000.03-attr.singleFilterStringOnly=false
|
06-child.00000.03-attr.singleFilterStringOnly=false
|
||||||
06-child.00000.03-attr.stringsCaseSensitive=false
|
06-child.00000.03-attr.stringsCaseSensitive=false
|
||||||
06-child.00000.03-attr.stringsNonChangable=false
|
06-child.00000.03-attr.stringsNonChangable=false
|
||||||
06-child.00000.03-attr.supportsDuplicateFilterStrings=false
|
06-child.00000.03-attr.supportsDuplicateFilterStrings=false
|
||||||
06-child.00000.03-attr.supportsNestedFilters=true
|
06-child.00000.03-attr.supportsNestedFilters=true
|
||||||
06-child.00000.06-child.00000.00-name=C\:\\Users\\wuming\\*
|
06-child.00000.06-child.00000.00-name=C\:\\Users\\wuming\\*
|
||||||
06-child.00000.06-child.00000.01-type=FilterString
|
06-child.00000.06-child.00000.01-type=FilterString
|
||||||
06-child.00000.06-child.00000.03-attr.default=false
|
06-child.00000.06-child.00000.03-attr.default=false
|
||||||
06-child.00000.06-child.00000.03-attr.string=C\:\\Users\\wuming\\*
|
06-child.00000.06-child.00000.03-attr.string=C\:\\Users\\wuming\\*
|
||||||
06-child.00000.06-child.00000.03-attr.type=default
|
06-child.00000.06-child.00000.03-attr.type=default
|
||||||
06-child.00001.00-name=Drives
|
06-child.00001.00-name=Drives
|
||||||
06-child.00001.01-type=Filter
|
06-child.00001.01-type=Filter
|
||||||
06-child.00001.03-attr.default=false
|
06-child.00001.03-attr.default=false
|
||||||
06-child.00001.03-attr.filterType=default
|
06-child.00001.03-attr.filterType=default
|
||||||
06-child.00001.03-attr.id=Drives
|
06-child.00001.03-attr.id=Drives
|
||||||
06-child.00001.03-attr.nonChangable=false
|
06-child.00001.03-attr.nonChangable=false
|
||||||
06-child.00001.03-attr.nonDeletable=false
|
06-child.00001.03-attr.nonDeletable=false
|
||||||
06-child.00001.03-attr.nonRenamable=false
|
06-child.00001.03-attr.nonRenamable=false
|
||||||
06-child.00001.03-attr.promptable=false
|
06-child.00001.03-attr.promptable=false
|
||||||
06-child.00001.03-attr.relativeOrder=0
|
06-child.00001.03-attr.relativeOrder=0
|
||||||
06-child.00001.03-attr.release=200
|
06-child.00001.03-attr.release=200
|
||||||
06-child.00001.03-attr.singleFilterStringOnly=false
|
06-child.00001.03-attr.singleFilterStringOnly=false
|
||||||
06-child.00001.03-attr.stringsCaseSensitive=false
|
06-child.00001.03-attr.stringsCaseSensitive=false
|
||||||
06-child.00001.03-attr.stringsNonChangable=false
|
06-child.00001.03-attr.stringsNonChangable=false
|
||||||
06-child.00001.03-attr.supportsDuplicateFilterStrings=false
|
06-child.00001.03-attr.supportsDuplicateFilterStrings=false
|
||||||
06-child.00001.03-attr.supportsNestedFilters=true
|
06-child.00001.03-attr.supportsNestedFilters=true
|
||||||
06-child.00001.06-child.00000.00-name=*
|
06-child.00001.06-child.00000.00-name=*
|
||||||
06-child.00001.06-child.00000.01-type=FilterString
|
06-child.00001.06-child.00000.01-type=FilterString
|
||||||
06-child.00001.06-child.00000.03-attr.default=false
|
06-child.00001.06-child.00000.03-attr.default=false
|
||||||
06-child.00001.06-child.00000.03-attr.string=*
|
06-child.00001.06-child.00000.03-attr.string=*
|
||||||
06-child.00001.06-child.00000.03-attr.type=default
|
06-child.00001.06-child.00000.03-attr.type=default
|
||||||
|
@ -1,25 +1,25 @@
|
|||||||
# RSE DOM Node
|
# RSE DOM Node
|
||||||
00-name=Local
|
00-name=Local
|
||||||
01-type=Host
|
01-type=Host
|
||||||
03-attr.description=
|
03-attr.description=
|
||||||
03-attr.hostname=LOCALHOST
|
03-attr.hostname=LOCALHOST
|
||||||
03-attr.offline=false
|
03-attr.offline=false
|
||||||
03-attr.promptable=false
|
03-attr.promptable=false
|
||||||
03-attr.systemType=org.eclipse.rse.systemtype.local
|
03-attr.systemType=org.eclipse.rse.systemtype.local
|
||||||
03-attr.type=Local
|
03-attr.type=Local
|
||||||
06-child.00000.00-name=Local Connector Service
|
06-child.00000.00-name=Local Connector Service
|
||||||
06-child.00000.01-type=ConnectorService
|
06-child.00000.01-type=ConnectorService
|
||||||
06-child.00000.03-attr.group=Local Connector Service
|
06-child.00000.03-attr.group=Local Connector Service
|
||||||
06-child.00000.03-attr.port=0
|
06-child.00000.03-attr.port=0
|
||||||
06-child.00000.03-attr.useSSL=false
|
06-child.00000.03-attr.useSSL=false
|
||||||
06-child.00000.06-child.00000.00-name=Local Files
|
06-child.00000.06-child.00000.00-name=Local Files
|
||||||
06-child.00000.06-child.00000.01-type=SubSystem
|
06-child.00000.06-child.00000.01-type=SubSystem
|
||||||
06-child.00000.06-child.00000.03-attr.hidden=false
|
06-child.00000.06-child.00000.03-attr.hidden=false
|
||||||
06-child.00000.06-child.00000.03-attr.type=local.files
|
06-child.00000.06-child.00000.03-attr.type=local.files
|
||||||
06-child.00000.06-child.00000.06-child.00000.00-name=DESKTOP-65KJ4BV___DESKTOP-65KJ4BV\:local.files
|
06-child.00000.06-child.00000.06-child.00000.00-name=DESKTOP-65KJ4BV___DESKTOP-65KJ4BV\:local.files
|
||||||
06-child.00000.06-child.00000.06-child.00000.01-type=FilterPoolReference
|
06-child.00000.06-child.00000.06-child.00000.01-type=FilterPoolReference
|
||||||
06-child.00000.06-child.00000.06-child.00000.03-attr.refID=local.files
|
06-child.00000.06-child.00000.06-child.00000.03-attr.refID=local.files
|
||||||
06-child.00000.06-child.00001.00-name=Local Shells
|
06-child.00000.06-child.00001.00-name=Local Shells
|
||||||
06-child.00000.06-child.00001.01-type=SubSystem
|
06-child.00000.06-child.00001.01-type=SubSystem
|
||||||
06-child.00000.06-child.00001.03-attr.hidden=false
|
06-child.00000.06-child.00001.03-attr.hidden=false
|
||||||
06-child.00000.06-child.00001.03-attr.type=local.shells
|
06-child.00000.06-child.00001.03-attr.type=local.shells
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# RSE DOM Node
|
# RSE DOM Node
|
||||||
00-name=DESKTOP-65KJ4BV
|
00-name=DESKTOP-65KJ4BV
|
||||||
01-type=Profile
|
01-type=Profile
|
||||||
03-attr.defaultPrivate=true
|
03-attr.defaultPrivate=true
|
||||||
03-attr.isActive=true
|
03-attr.isActive=true
|
||||||
05-ref.00000=FP.local.files_0
|
05-ref.00000=FP.local.files_0
|
||||||
05-ref.00001=H.local_16
|
05-ref.00001=H.local_16
|
||||||
|
@ -1,28 +1,28 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<section name="Workbench">
|
<section name="Workbench">
|
||||||
<section name="org.eclipse.ui.internal.QuickAccess">
|
<section name="org.eclipse.ui.internal.QuickAccess">
|
||||||
<item value="759" key="dialogHeight"/>
|
<item value="759" key="dialogHeight"/>
|
||||||
<item value="1440" key="dialogWidth"/>
|
<item value="1440" key="dialogWidth"/>
|
||||||
<list key="textEntries">
|
<list key="textEntries">
|
||||||
</list>
|
</list>
|
||||||
<list key="orderedElements">
|
<list key="orderedElements">
|
||||||
</list>
|
</list>
|
||||||
<list key="orderedProviders">
|
<list key="orderedProviders">
|
||||||
</list>
|
</list>
|
||||||
<list key="textArray">
|
<list key="textArray">
|
||||||
</list>
|
</list>
|
||||||
</section>
|
</section>
|
||||||
<section name="ShowViewDialog">
|
<section name="ShowViewDialog">
|
||||||
<item value="345" key="DIALOG_WIDTH"/>
|
<item value="345" key="DIALOG_WIDTH"/>
|
||||||
<item value="1|Microsoft YaHei UI|9.0|0|WINDOWS|1|-12|0|0|0|400|0|0|0|1|0|0|0|0|Microsoft YaHei UI" key="DIALOG_FONT_NAME"/>
|
<item value="1|Microsoft YaHei UI|9.0|0|WINDOWS|1|-12|0|0|0|400|0|0|0|1|0|0|0|0|Microsoft YaHei UI" key="DIALOG_FONT_NAME"/>
|
||||||
<item value="org.eclipse.jdt.ui.PackageExplorer" key="ShowViewDialog.STORE_SELECTED_VIEW_ID"/>
|
<item value="org.eclipse.jdt.ui.PackageExplorer" key="ShowViewDialog.STORE_SELECTED_VIEW_ID"/>
|
||||||
<item value="452" key="DIALOG_HEIGHT"/>
|
<item value="452" key="DIALOG_HEIGHT"/>
|
||||||
<item value="796" key="DIALOG_X_ORIGIN"/>
|
<item value="796" key="DIALOG_X_ORIGIN"/>
|
||||||
<item value="227" key="DIALOG_Y_ORIGIN"/>
|
<item value="227" key="DIALOG_Y_ORIGIN"/>
|
||||||
<list key="ShowViewDialog.STORE_EXPANDED_CATEGORIES_ID">
|
<list key="ShowViewDialog.STORE_EXPANDED_CATEGORIES_ID">
|
||||||
<item value="org.eclipse.jdt.ui.java"/>
|
<item value="org.eclipse.jdt.ui.java"/>
|
||||||
</list>
|
</list>
|
||||||
</section>
|
</section>
|
||||||
<section name="ImportExportAction">
|
<section name="ImportExportAction">
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,41 +1,41 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<projectDescription>
|
<projectDescription>
|
||||||
<name>data_manager_backend</name>
|
<name>data_manager_backend</name>
|
||||||
<comment></comment>
|
<comment></comment>
|
||||||
<projects>
|
<projects>
|
||||||
</projects>
|
</projects>
|
||||||
<buildSpec>
|
<buildSpec>
|
||||||
<buildCommand>
|
<buildCommand>
|
||||||
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
|
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
|
||||||
<arguments>
|
<arguments>
|
||||||
</arguments>
|
</arguments>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
<buildCommand>
|
<buildCommand>
|
||||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
<arguments>
|
<arguments>
|
||||||
</arguments>
|
</arguments>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
<buildCommand>
|
<buildCommand>
|
||||||
<name>org.eclipse.wst.common.project.facet.core.builder</name>
|
<name>org.eclipse.wst.common.project.facet.core.builder</name>
|
||||||
<arguments>
|
<arguments>
|
||||||
</arguments>
|
</arguments>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
<buildCommand>
|
<buildCommand>
|
||||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||||
<arguments>
|
<arguments>
|
||||||
</arguments>
|
</arguments>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
<buildCommand>
|
<buildCommand>
|
||||||
<name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
|
<name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
|
||||||
<arguments>
|
<arguments>
|
||||||
</arguments>
|
</arguments>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
</buildSpec>
|
</buildSpec>
|
||||||
<natures>
|
<natures>
|
||||||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
|
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
|
||||||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
|
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
|
||||||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
|
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
|
||||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
||||||
</natures>
|
</natures>
|
||||||
</projectDescription>
|
</projectDescription>
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
Manifest-Version: 1.0
|
Manifest-Version: 1.0
|
||||||
Class-Path:
|
Class-Path:
|
||||||
|
|
||||||
|
@ -1,50 +1,50 @@
|
|||||||
#=============================================================================================================
|
#=============================================================================================================
|
||||||
# MySQL
|
# MySQL
|
||||||
#=============================================================================================================
|
#=============================================================================================================
|
||||||
# 驱动程序
|
# 驱动程序
|
||||||
jdbc.mysql.driver=com.mysql.jdbc.Driver
|
jdbc.mysql.driver=com.mysql.jdbc.Driver
|
||||||
# 连接url
|
# 连接url
|
||||||
jdbc.mysql.url=jdbc:mysql://192.168.0.101:3306/test?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
|
jdbc.mysql.url=jdbc:mysql://192.168.0.101:3306/test?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
|
||||||
# 用户名
|
# 用户名
|
||||||
jdbc.mysql.username=root
|
jdbc.mysql.username=root
|
||||||
# 密码
|
# 密码
|
||||||
jdbc.mysql.password=root
|
jdbc.mysql.password=root
|
||||||
|
|
||||||
#=============================================================================================================
|
#=============================================================================================================
|
||||||
# Oracle 连接配置
|
# Oracle 连接配置
|
||||||
#=============================================================================================================
|
#=============================================================================================================
|
||||||
# hui用户名
|
# hui用户名
|
||||||
gather-user-name=system
|
gather-user-name=system
|
||||||
# 密码
|
# 密码
|
||||||
gather-user-password=oracle
|
gather-user-password=oracle
|
||||||
#
|
#
|
||||||
gather-port=1521
|
gather-port=1521
|
||||||
#
|
#
|
||||||
gather-service-name=orcl
|
gather-service-name=orcl
|
||||||
#=============================================================================================================
|
#=============================================================================================================
|
||||||
# 数据库公共配置
|
# 数据库公共配置
|
||||||
#=============================================================================================================
|
#=============================================================================================================
|
||||||
jdbc.initialSize=5
|
jdbc.initialSize=5
|
||||||
jdbc.minIdle=5
|
jdbc.minIdle=5
|
||||||
jdbc.maxIdle=20
|
jdbc.maxIdle=20
|
||||||
jdbc.maxActive=100
|
jdbc.maxActive=100
|
||||||
jdbc.maxWait=100000
|
jdbc.maxWait=100000
|
||||||
jdbc.defaultAutoCommit=false
|
jdbc.defaultAutoCommit=false
|
||||||
jdbc.removeAbandoned=true
|
jdbc.removeAbandoned=true
|
||||||
jdbc.removeAbandonedTimeout=600
|
jdbc.removeAbandonedTimeout=600
|
||||||
jdbc.testWhileIdle=true
|
jdbc.testWhileIdle=true
|
||||||
jdbc.timeBetweenEvictionRunsMillis=60000
|
jdbc.timeBetweenEvictionRunsMillis=60000
|
||||||
jdbc.numTestsPerEvictionRun=20
|
jdbc.numTestsPerEvictionRun=20
|
||||||
jdbc.minEvictableIdleTimeMillis=300000
|
jdbc.minEvictableIdleTimeMillis=300000
|
||||||
#==============================================================================================================
|
#==============================================================================================================
|
||||||
#
|
#
|
||||||
#==============================================================================================================
|
#==============================================================================================================
|
||||||
table-suffix=_20152016
|
table-suffix=_20152016
|
||||||
extract-log-localtion=/home/log/
|
extract-log-localtion=/home/log/
|
||||||
gather-tablespace-name=TS_TTSSS
|
gather-tablespace-name=TS_TTSSS
|
||||||
gather-tablespace-path=
|
gather-tablespace-path=
|
||||||
gather-table-user-password=
|
gather-table-user-password=
|
||||||
kubeMasterUrl=http://192.168.0.110:8080/
|
kubeMasterUrl=http://192.168.0.110:8080/
|
||||||
collect-user-name=system
|
collect-user-name=system
|
||||||
collect-password=oracle
|
collect-password=oracle
|
||||||
collect-service-name=orcl
|
collect-service-name=orcl
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
function ergodic(){
|
function ergodic(){
|
||||||
for file in `ls $1`
|
for file in `ls $1`
|
||||||
do
|
do
|
||||||
if [ "$file" != "app" -a -d $1"/"$file ]
|
if [ "$file" != "app" -a -d $1"/"$file ]
|
||||||
then
|
then
|
||||||
ergodic $1"/"$file
|
ergodic $1"/"$file
|
||||||
else
|
else
|
||||||
local path=$1"/"$file
|
local path=$1"/"$file
|
||||||
echo $path
|
echo $path
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
IFS=$'\n' #这个必须要,否则会在文件名中有空格时出错
|
IFS=$'\n' #这个必须要,否则会在文件名中有空格时出错
|
||||||
INIT_PATH=".";
|
INIT_PATH=".";
|
||||||
ergodic $1
|
ergodic $1
|
@ -1,22 +1,22 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE configuration PUBLIC
|
<!DOCTYPE configuration PUBLIC
|
||||||
"-//mybatis.org//DTD Config 3.0//EN"
|
"-//mybatis.org//DTD Config 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-config.dtd">
|
"http://mybatis.org/dtd/mybatis-3-config.dtd">
|
||||||
<configuration>
|
<configuration>
|
||||||
<typeAliases>
|
<typeAliases>
|
||||||
<typeAlias alias="EncodedInfoEntity" type="com.platform.entities.EncodedInfoEntity" />
|
<typeAlias alias="EncodedInfoEntity" type="com.platform.entities.EncodedInfoEntity" />
|
||||||
<typeAlias alias="DataInfoEntity" type="com.platform.entities.DataInfoEntity" />
|
<typeAlias alias="DataInfoEntity" type="com.platform.entities.DataInfoEntity" />
|
||||||
<typeAlias alias="PagerOptions" type="com.platform.entities.PagerOptions"/>
|
<typeAlias alias="PagerOptions" type="com.platform.entities.PagerOptions"/>
|
||||||
<typeAlias alias="GatherOracleInfo" type="com.platform.entities.GatherOracleInfo"/>
|
<typeAlias alias="GatherOracleInfo" type="com.platform.entities.GatherOracleInfo"/>
|
||||||
<typeAlias alias="DataInfoEntityMoveTmp" type="com.platform.entities.DataInfoEntityMoveTmp"/>
|
<typeAlias alias="DataInfoEntityMoveTmp" type="com.platform.entities.DataInfoEntityMoveTmp"/>
|
||||||
<typeAlias alias="SystemEntity" type="com.platform.entities.SystemEntity"/>
|
<typeAlias alias="SystemEntity" type="com.platform.entities.SystemEntity"/>
|
||||||
<typeAlias alias="RegionalismEntity" type="com.platform.entities.RegionalismEntity"/>
|
<typeAlias alias="RegionalismEntity" type="com.platform.entities.RegionalismEntity"/>
|
||||||
</typeAliases>
|
</typeAliases>
|
||||||
<mappers>
|
<mappers>
|
||||||
<mapper resource="com/dao/mapper/data-details-mapper.xml" />
|
<mapper resource="com/dao/mapper/data-details-mapper.xml" />
|
||||||
<mapper resource="com/dao/mapper/config-details-mapper.xml"/>
|
<mapper resource="com/dao/mapper/config-details-mapper.xml"/>
|
||||||
<mapper resource="com/dao/mapper/dataInfoMoveTmpmapper.xml"/>
|
<mapper resource="com/dao/mapper/dataInfoMoveTmpmapper.xml"/>
|
||||||
<mapper resource="com/dao/mapper/RegionalismMapper.xml"/>
|
<mapper resource="com/dao/mapper/RegionalismMapper.xml"/>
|
||||||
<mapper resource="com/dao/mapper/SystemCodeMapper.xml"/>
|
<mapper resource="com/dao/mapper/SystemCodeMapper.xml"/>
|
||||||
</mappers>
|
</mappers>
|
||||||
</configuration>
|
</configuration>
|
@ -1,93 +1,93 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xmlns:p="http://www.springframework.org/schema/p"
|
xmlns:p="http://www.springframework.org/schema/p"
|
||||||
xmlns:tx="http://www.springframework.org/schema/tx"
|
xmlns:tx="http://www.springframework.org/schema/tx"
|
||||||
xmlns:aop="http://www.springframework.org/schema/aop"
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
||||||
xmlns:context="http://www.springframework.org/schema/context"
|
xmlns:context="http://www.springframework.org/schema/context"
|
||||||
xmlns:task="http://www.springframework.org/schema/task"
|
xmlns:task="http://www.springframework.org/schema/task"
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||||
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
||||||
http://www.springframework.org/schema/tx
|
http://www.springframework.org/schema/tx
|
||||||
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
|
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
|
||||||
http://www.springframework.org/schema/aop
|
http://www.springframework.org/schema/aop
|
||||||
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
|
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
|
||||||
http://www.springframework.org/schema/context
|
http://www.springframework.org/schema/context
|
||||||
http://www.springframework.org/schema/context/spring-context-3.0.xsd
|
http://www.springframework.org/schema/context/spring-context-3.0.xsd
|
||||||
http://www.springframework.org/schema/websocket
|
http://www.springframework.org/schema/websocket
|
||||||
http://www.springframework.org/schema/websocket/spring-websocket.xsd
|
http://www.springframework.org/schema/websocket/spring-websocket.xsd
|
||||||
http://www.springframework.org/schema/beans
|
http://www.springframework.org/schema/beans
|
||||||
http://www.springframework.org/schema/beans/spring-beans.xsd
|
http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||||
http://www.springframework.org/schema/task
|
http://www.springframework.org/schema/task
|
||||||
http://www.springframework.org/schema/task/spring-task-3.0.xsd">
|
http://www.springframework.org/schema/task/spring-task-3.0.xsd">
|
||||||
|
|
||||||
<!-- 读取db.properties中的属性值 -->
|
<!-- 读取db.properties中的属性值 -->
|
||||||
<bean
|
<bean
|
||||||
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
||||||
<property name="location" value="WEB-INF/config/config.properties"></property>
|
<property name="location" value="WEB-INF/config/config.properties"></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="messageCodeResolver"
|
<bean id="messageCodeResolver"
|
||||||
class="org.springframework.validation.DefaultMessageCodesResolver">
|
class="org.springframework.validation.DefaultMessageCodesResolver">
|
||||||
<property name="prefix" value="validation."></property>
|
<property name="prefix" value="validation."></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- 连接MySQL数据库 -->
|
<!-- 连接MySQL数据库 -->
|
||||||
<bean id="mySQLDataSource"
|
<bean id="mySQLDataSource"
|
||||||
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
|
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
|
||||||
<property name="driverClassName" value="${jdbc.mysql.driver}" />
|
<property name="driverClassName" value="${jdbc.mysql.driver}" />
|
||||||
<property name="url" value="${jdbc.mysql.url}" />
|
<property name="url" value="${jdbc.mysql.url}" />
|
||||||
<property name="username" value="${jdbc.mysql.username}" />
|
<property name="username" value="${jdbc.mysql.username}" />
|
||||||
<property name="password" value="${jdbc.mysql.password}" />
|
<property name="password" value="${jdbc.mysql.password}" />
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="mySQLSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
|
<bean id="mySQLSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
|
||||||
<property name="configLocation" value="WEB-INF/config/mybatis-applicationConfig.xml" />
|
<property name="configLocation" value="WEB-INF/config/mybatis-applicationConfig.xml" />
|
||||||
<property name="dataSource" ref="mySQLDataSource" />
|
<property name="dataSource" ref="mySQLDataSource" />
|
||||||
</bean>
|
</bean>
|
||||||
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
|
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
|
||||||
<property name="basePackage" value="com.platform.dao,com.dao.mapper" />
|
<property name="basePackage" value="com.platform.dao,com.dao.mapper" />
|
||||||
</bean>
|
</bean>
|
||||||
<!-- 配置声明式事物 事物管理器 -->
|
<!-- 配置声明式事物 事物管理器 -->
|
||||||
<!-- 配置声明式事物 -->
|
<!-- 配置声明式事物 -->
|
||||||
<bean id="mySQLTxManager"
|
<bean id="mySQLTxManager"
|
||||||
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
|
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
|
||||||
<property name="dataSource" ref="mySQLDataSource" />
|
<property name="dataSource" ref="mySQLDataSource" />
|
||||||
</bean>
|
</bean>
|
||||||
<tx:advice id="txAdvice" transaction-manager="mySQLTxManager">
|
<tx:advice id="txAdvice" transaction-manager="mySQLTxManager">
|
||||||
<tx:attributes>
|
<tx:attributes>
|
||||||
<tx:method name="delete*" propagation="REQUIRED" />
|
<tx:method name="delete*" propagation="REQUIRED" />
|
||||||
<tx:method name="insert*" propagation="REQUIRED" />
|
<tx:method name="insert*" propagation="REQUIRED" />
|
||||||
<tx:method name="update*" propagation="REQUIRED" />
|
<tx:method name="update*" propagation="REQUIRED" />
|
||||||
<tx:method name="select*" read-only="true" />
|
<tx:method name="select*" read-only="true" />
|
||||||
</tx:attributes>
|
</tx:attributes>
|
||||||
</tx:advice>
|
</tx:advice>
|
||||||
<aop:config>
|
<aop:config>
|
||||||
<aop:pointcut expression="execution(* com.platform.service.*.*(..))"
|
<aop:pointcut expression="execution(* com.platform.service.*.*(..))"
|
||||||
id="pointcut" />
|
id="pointcut" />
|
||||||
<aop:advisor advice-ref="txAdvice" pointcut-ref="pointcut" />
|
<aop:advisor advice-ref="txAdvice" pointcut-ref="pointcut" />
|
||||||
</aop:config>
|
</aop:config>
|
||||||
|
|
||||||
<!-- 连接oracle数据库 -->
|
<!-- 连接oracle数据库 -->
|
||||||
<!-- <bean id="oracleDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"
|
<!-- <bean id="oracleDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"
|
||||||
destroy-method="close"> <property name="driverClassName" value="${jdbc.oracle.driver}"
|
destroy-method="close"> <property name="driverClassName" value="${jdbc.oracle.driver}"
|
||||||
/> <property name="url" value="${jdbc.oracle.url}" /> <property name="username"
|
/> <property name="url" value="${jdbc.oracle.url}" /> <property name="username"
|
||||||
value="${jdbc.oracle.username}" /> <property name="password" value="${jdbc.oracle.password}"
|
value="${jdbc.oracle.username}" /> <property name="password" value="${jdbc.oracle.password}"
|
||||||
/> <property name="initialSize" value="${jdbc.initialSize}" /> <property
|
/> <property name="initialSize" value="${jdbc.initialSize}" /> <property
|
||||||
name="minIdle" value="${jdbc.minIdle}" /> <property name="maxIdle" value="${jdbc.maxIdle}"
|
name="minIdle" value="${jdbc.minIdle}" /> <property name="maxIdle" value="${jdbc.maxIdle}"
|
||||||
/> <property name="maxActive" value="${jdbc.maxActive}" /> <property name="maxWait"
|
/> <property name="maxActive" value="${jdbc.maxActive}" /> <property name="maxWait"
|
||||||
value="${jdbc.maxWait}" /> <property name="defaultAutoCommit" value="${jdbc.defaultAutoCommit}"
|
value="${jdbc.maxWait}" /> <property name="defaultAutoCommit" value="${jdbc.defaultAutoCommit}"
|
||||||
/> <property name="removeAbandoned" value="${jdbc.removeAbandoned}" /> <property
|
/> <property name="removeAbandoned" value="${jdbc.removeAbandoned}" /> <property
|
||||||
name="removeAbandonedTimeout" value="${jdbc.removeAbandonedTimeout}" /> <property
|
name="removeAbandonedTimeout" value="${jdbc.removeAbandonedTimeout}" /> <property
|
||||||
name="testWhileIdle" value="${jdbc.testWhileIdle}" /> <property name="timeBetweenEvictionRunsMillis"
|
name="testWhileIdle" value="${jdbc.testWhileIdle}" /> <property name="timeBetweenEvictionRunsMillis"
|
||||||
value="${jdbc.timeBetweenEvictionRunsMillis}" /> <property name="numTestsPerEvictionRun"
|
value="${jdbc.timeBetweenEvictionRunsMillis}" /> <property name="numTestsPerEvictionRun"
|
||||||
value="${jdbc.numTestsPerEvictionRun}" /> <property name="minEvictableIdleTimeMillis"
|
value="${jdbc.numTestsPerEvictionRun}" /> <property name="minEvictableIdleTimeMillis"
|
||||||
value="${jdbc.minEvictableIdleTimeMillis}" /> </bean> -->
|
value="${jdbc.minEvictableIdleTimeMillis}" /> </bean> -->
|
||||||
<context:component-scan base-package="com.platform.*">
|
<context:component-scan base-package="com.platform.*">
|
||||||
<context:exclude-filter type="annotation"
|
<context:exclude-filter type="annotation"
|
||||||
expression="org.springframework.stereotype.Controller" />
|
expression="org.springframework.stereotype.Controller" />
|
||||||
</context:component-scan>
|
</context:component-scan>
|
||||||
<!-- Enables the Spring Task @Scheduled programming model -->
|
<!-- Enables the Spring Task @Scheduled programming model -->
|
||||||
<task:executor id="executor" pool-size="5" />
|
<task:executor id="executor" pool-size="5" />
|
||||||
<task:scheduler id="scheduler" pool-size="10" />
|
<task:scheduler id="scheduler" pool-size="10" />
|
||||||
<task:annotation-driven executor="executor" scheduler="scheduler" />
|
<task:annotation-driven executor="executor" scheduler="scheduler" />
|
||||||
</beans>
|
</beans>
|
@ -1,57 +1,57 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xmlns:aop="http://www.springframework.org/schema/aop"
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
||||||
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
||||||
xmlns:tx="http://www.springframework.org/schema/tx"
|
xmlns:tx="http://www.springframework.org/schema/tx"
|
||||||
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
|
xmlns:jdbc="http://www.springframework.org/schema/jdbc"
|
||||||
xmlns:context="http://www.springframework.org/schema/context"
|
xmlns:context="http://www.springframework.org/schema/context"
|
||||||
xmlns:websocket="http://www.springframework.org/schema/websocket"
|
xmlns:websocket="http://www.springframework.org/schema/websocket"
|
||||||
xsi:schemaLocation="
|
xsi:schemaLocation="
|
||||||
http://www.springframework.org/schema/context
|
http://www.springframework.org/schema/context
|
||||||
http://www.springframework.org/schema/context/spring-context-4.0.xsd
|
http://www.springframework.org/schema/context/spring-context-4.0.xsd
|
||||||
http://www.springframework.org/schema/beans
|
http://www.springframework.org/schema/beans
|
||||||
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
||||||
http://www.springframework.org/schema/jdbc
|
http://www.springframework.org/schema/jdbc
|
||||||
http://www.springframework.org/schema/jdbc/spring-jdbc-4.0.xsd
|
http://www.springframework.org/schema/jdbc/spring-jdbc-4.0.xsd
|
||||||
http://www.springframework.org/schema/tx
|
http://www.springframework.org/schema/tx
|
||||||
http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
|
http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
|
||||||
http://www.springframework.org/schema/aop
|
http://www.springframework.org/schema/aop
|
||||||
http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
|
http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
|
||||||
http://www.springframework.org/schema/mvc
|
http://www.springframework.org/schema/mvc
|
||||||
http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
|
http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
|
||||||
http://www.springframework.org/schema/websocket
|
http://www.springframework.org/schema/websocket
|
||||||
http://www.springframework.org/schema/websocket/spring-websocket-4.0.xsd"
|
http://www.springframework.org/schema/websocket/spring-websocket-4.0.xsd"
|
||||||
default-autowire="byName">
|
default-autowire="byName">
|
||||||
|
|
||||||
<context:component-scan base-package="com.platform.controller,com.platform.test,com.platform.websocket;" >
|
<context:component-scan base-package="com.platform.controller,com.platform.test,com.platform.websocket;" >
|
||||||
<context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
|
<context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
|
||||||
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Service"/>
|
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Service"/>
|
||||||
</context:component-scan>
|
</context:component-scan>
|
||||||
|
|
||||||
<context:annotation-config />
|
<context:annotation-config />
|
||||||
|
|
||||||
<mvc:annotation-driven/>
|
<mvc:annotation-driven/>
|
||||||
|
|
||||||
<!-- 用于将对象转换为JSON -->
|
<!-- 用于将对象转换为JSON -->
|
||||||
<bean id="stringConverter"
|
<bean id="stringConverter"
|
||||||
class="org.springframework.http.converter.StringHttpMessageConverter">
|
class="org.springframework.http.converter.StringHttpMessageConverter">
|
||||||
<property name="supportedMediaTypes">
|
<property name="supportedMediaTypes">
|
||||||
<list>
|
<list>
|
||||||
<value>application/json;charset=UTF-8</value>
|
<value>application/json;charset=UTF-8</value>
|
||||||
<value>text/html;charset=UTF-8</value>
|
<value>text/html;charset=UTF-8</value>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="jsonConverter"
|
<bean id="jsonConverter"
|
||||||
class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"/>
|
class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"/>
|
||||||
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
|
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
|
||||||
<property name="messageConverters">
|
<property name="messageConverters">
|
||||||
<list>
|
<list>
|
||||||
<ref bean="stringConverter" />
|
<ref bean="stringConverter" />
|
||||||
<ref bean="jsonConverter" />
|
<ref bean="jsonConverter" />
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
@ -1,66 +1,66 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xmlns="http://java.sun.com/xml/ns/javaee"
|
xmlns="http://java.sun.com/xml/ns/javaee"
|
||||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
|
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
|
||||||
id="WebApp_ID" version="3.0">
|
id="WebApp_ID" version="3.0">
|
||||||
<display-name>javaBackend</display-name>
|
<display-name>javaBackend</display-name>
|
||||||
<welcome-file-list>
|
<welcome-file-list>
|
||||||
<welcome-file>/index.html</welcome-file>
|
<welcome-file>/index.html</welcome-file>
|
||||||
</welcome-file-list>
|
</welcome-file-list>
|
||||||
<!-- 设置post请求字符编码:utf-8,get编码设置tomcat -->
|
<!-- 设置post请求字符编码:utf-8,get编码设置tomcat -->
|
||||||
<filter>
|
<filter>
|
||||||
<filter-name>CharacterEncodingFilter</filter-name>
|
<filter-name>CharacterEncodingFilter</filter-name>
|
||||||
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
|
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
|
||||||
<init-param>
|
<init-param>
|
||||||
<param-name>encoding</param-name>
|
<param-name>encoding</param-name>
|
||||||
<param-value>UTF-8</param-value>
|
<param-value>UTF-8</param-value>
|
||||||
</init-param>
|
</init-param>
|
||||||
</filter>
|
</filter>
|
||||||
<filter-mapping>
|
<filter-mapping>
|
||||||
<filter-name>CharacterEncodingFilter</filter-name>
|
<filter-name>CharacterEncodingFilter</filter-name>
|
||||||
<url-pattern>/</url-pattern>
|
<url-pattern>/</url-pattern>
|
||||||
</filter-mapping>
|
</filter-mapping>
|
||||||
<!-- spring配置文件 -->
|
<!-- spring配置文件 -->
|
||||||
|
|
||||||
<context-param>
|
<context-param>
|
||||||
<param-name>contextConfigLocation</param-name>
|
<param-name>contextConfigLocation</param-name>
|
||||||
<param-value>WEB-INF/config/spring-applicationContext.xml</param-value>
|
<param-value>WEB-INF/config/spring-applicationContext.xml</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
<listener>
|
<listener>
|
||||||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
||||||
</listener>
|
</listener>
|
||||||
|
|
||||||
<listener>
|
<listener>
|
||||||
<listener-class>com.platform.utils.ConfigsLoader</listener-class>
|
<listener-class>com.platform.utils.ConfigsLoader</listener-class>
|
||||||
</listener>
|
</listener>
|
||||||
|
|
||||||
<!-- springmv的配置文件 -->
|
<!-- springmv的配置文件 -->
|
||||||
<servlet>
|
<servlet>
|
||||||
<servlet-name>springmvc</servlet-name>
|
<servlet-name>springmvc</servlet-name>
|
||||||
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
||||||
<init-param>
|
<init-param>
|
||||||
<param-name>contextConfigLocation</param-name>
|
<param-name>contextConfigLocation</param-name>
|
||||||
<param-value>/WEB-INF/config/springmvc-applicationContext.xml</param-value>
|
<param-value>/WEB-INF/config/springmvc-applicationContext.xml</param-value>
|
||||||
</init-param>
|
</init-param>
|
||||||
<load-on-startup>1</load-on-startup>
|
<load-on-startup>1</load-on-startup>
|
||||||
<async-supported>true</async-supported>
|
<async-supported>true</async-supported>
|
||||||
</servlet>
|
</servlet>
|
||||||
<servlet-mapping>
|
<servlet-mapping>
|
||||||
<servlet-name>springmvc</servlet-name>
|
<servlet-name>springmvc</servlet-name>
|
||||||
<url-pattern>/</url-pattern>
|
<url-pattern>/</url-pattern>
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
|
|
||||||
<!-- log4j配置文件 -->
|
<!-- log4j配置文件 -->
|
||||||
<context-param>
|
<context-param>
|
||||||
<param-name>log4jConfigLocation</param-name>
|
<param-name>log4jConfigLocation</param-name>
|
||||||
<param-value>/WEB-INF/config/log4j-config.xml</param-value>
|
<param-value>/WEB-INF/config/log4j-config.xml</param-value>
|
||||||
</context-param>
|
</context-param>
|
||||||
<listener>
|
<listener>
|
||||||
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
|
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
|
||||||
</listener>
|
</listener>
|
||||||
|
|
||||||
<!-- 防止Spring内存溢出监听器 -->
|
<!-- 防止Spring内存溢出监听器 -->
|
||||||
<!-- <listener>
|
<!-- <listener>
|
||||||
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
|
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
|
||||||
</listener> -->
|
</listener> -->
|
||||||
</web-app>
|
</web-app>
|
@ -1,49 +1,49 @@
|
|||||||
|
|
||||||
package com.platform.utils;
|
package com.platform.utils;
|
||||||
|
|
||||||
|
|
||||||
public class Constant {
|
public class Constant {
|
||||||
public static String rootUser = "root";
|
public static String rootUser = "root";
|
||||||
public static String rootPasswd = "root";
|
public static String rootPasswd = "root";
|
||||||
public static String hostIp = "192.168.0.110";
|
public static String hostIp = "192.168.0.110";
|
||||||
// public static String hostIp = "192.168.1.105";
|
// public static String hostIp = "192.168.1.105";
|
||||||
public static int port = 22;
|
public static int port = 22;
|
||||||
public static String glusterPeerStatus = "gluster peer status";
|
public static String glusterPeerStatus = "gluster peer status";
|
||||||
public static String glusterVolumeInfo = "gluster volume info ";
|
public static String glusterVolumeInfo = "gluster volume info ";
|
||||||
public static String df = "df -k ";
|
public static String df = "df -k ";
|
||||||
public static String peerincluster_connected = "PeerinCluster(Connected)";
|
public static String peerincluster_connected = "PeerinCluster(Connected)";
|
||||||
public static String peerincluster_disconnected = "PeerinCluster(Disconnected)";
|
public static String peerincluster_disconnected = "PeerinCluster(Disconnected)";
|
||||||
public static String peerNotinCluster = "PeerNotinCluster";
|
public static String peerNotinCluster = "PeerNotinCluster";
|
||||||
public static String distributed = "distributed";
|
public static String distributed = "distributed";
|
||||||
public static String replica = "replica";
|
public static String replica = "replica";
|
||||||
public static String stripe = "stripe";
|
public static String stripe = "stripe";
|
||||||
public static String noVolume = "No volumes present";
|
public static String noVolume = "No volumes present";
|
||||||
public static String success = "success";
|
public static String success = "success";
|
||||||
public static String failed = "failed";
|
public static String failed = "failed";
|
||||||
public static String noSuchFile = "No such file or directory";
|
public static String noSuchFile = "No such file or directory";
|
||||||
public static GanymedSSH ganymedSSH = new GanymedSSH(hostIp, rootUser, rootPasswd, port);
|
public static GanymedSSH ganymedSSH = new GanymedSSH(hostIp, rootUser, rootPasswd, port);
|
||||||
public static String fileGetTreeData = "WebContent\\WEB-INF\\config\\getTreedata.sh";
|
public static String fileGetTreeData = "WebContent\\WEB-INF\\config\\getTreedata.sh";
|
||||||
public static String AutoMountfile="/gfsAutoMount/AutoRun.sh";
|
public static String AutoMountfile="/gfsAutoMount/AutoRun.sh";
|
||||||
public static String MountRecord="/gfsAutoMount/mountPoint.record";
|
public static String MountRecord="/gfsAutoMount/mountPoint.record";
|
||||||
public static String strGetTreeData = "function ergodic(){\n "
|
public static String strGetTreeData = "function ergodic(){\n "
|
||||||
+ "for file in \\`ls \\$1\\`\n do\n if [ \"\\$file\" != \"app\" -a -d \\$1\\\"/\\\"\\$file ]\n "
|
+ "for file in \\`ls \\$1\\`\n do\n if [ \"\\$file\" != \"app\" -a -d \\$1\\\"/\\\"\\$file ]\n "
|
||||||
+ "then\n ergodic \\$1\"/\"\\$file\n else\n local path=\\$1\"/\"\\$file\n "
|
+ "then\n ergodic \\$1\"/\"\\$file\n else\n local path=\\$1\"/\"\\$file\n "
|
||||||
+ "echo \\$path \n fi\n done\n}\n\nIFS=\\$\\'\\n\\' "
|
+ "echo \\$path \n fi\n done\n}\n\nIFS=\\$\\'\\n\\' "
|
||||||
+ "#这个必须要,否则会在文件名中有空格时出错\nINIT_PATH=\".\";\nergodic \\$1\n";
|
+ "#这个必须要,否则会在文件名中有空格时出错\nINIT_PATH=\".\";\nergodic \\$1\n";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* volume 获取的线程休眠时间
|
* volume 获取的线程休眠时间
|
||||||
*/
|
*/
|
||||||
public final static int moveFileMaxNum = 1;
|
public final static int moveFileMaxNum = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* volume 获取的线程休眠时间
|
* volume 获取的线程休眠时间
|
||||||
*/
|
*/
|
||||||
public final static int get_volume_sleep_time = 600000;
|
public final static int get_volume_sleep_time = 600000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* volume 获取的线程休眠时间
|
* volume 获取的线程休眠时间
|
||||||
*/
|
*/
|
||||||
public final static int update_dataInfo_sleep_time = 30000;
|
public final static int update_dataInfo_sleep_time = 30000;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
package com.platform.test;
|
package com.platform.test;
|
||||||
|
|
||||||
public class Brick {
|
public class Brick {
|
||||||
private String ip;
|
private String ip;
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
public Brick(String ip, String path) {
|
public Brick(String ip, String path) {
|
||||||
super();
|
super();
|
||||||
this.ip = ip;
|
this.ip = ip;
|
||||||
this.path = path;
|
this.path = path;
|
||||||
}
|
}
|
||||||
public String getIp() {
|
public String getIp() {
|
||||||
return ip;
|
return ip;
|
||||||
}
|
}
|
||||||
public void setIp(String ip) {
|
public void setIp(String ip) {
|
||||||
this.ip = ip;
|
this.ip = ip;
|
||||||
}
|
}
|
||||||
public String getPath() {
|
public String getPath() {
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
public void setPath(String path) {
|
public void setPath(String path) {
|
||||||
this.path = path;
|
this.path = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,35 +1,35 @@
|
|||||||
package com.platform.test;
|
package com.platform.test;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.platform.entities.FolderNode;
|
import com.platform.entities.FolderNode;
|
||||||
|
|
||||||
public class FolderReader {
|
public class FolderReader {
|
||||||
|
|
||||||
public static FolderNode reader(String path) {
|
public static FolderNode reader(String path) {
|
||||||
FolderNode folderNode = null;
|
FolderNode folderNode = null;
|
||||||
File file = new File(path);
|
File file = new File(path);
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
List<FolderNode> childrens = new ArrayList<FolderNode>();
|
List<FolderNode> childrens = new ArrayList<FolderNode>();
|
||||||
if (file.isDirectory()) {
|
if (file.isDirectory()) {
|
||||||
File[] files = file.listFiles();
|
File[] files = file.listFiles();
|
||||||
for (int i = 0; i < files.length; i++) {
|
for (int i = 0; i < files.length; i++) {
|
||||||
FolderNode children = reader(files[i].getAbsolutePath());
|
FolderNode children = reader(files[i].getAbsolutePath());
|
||||||
if (children != null)
|
if (children != null)
|
||||||
childrens.add(children);
|
childrens.add(children);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return folderNode;
|
return folderNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
FolderReader folderReader = new FolderReader();
|
FolderReader folderReader = new FolderReader();
|
||||||
FolderNode folderNode = folderReader.reader("D:/bootstrap");
|
FolderNode folderNode = folderReader.reader("D:/bootstrap");
|
||||||
//folderReader.print(folderNode);
|
//folderReader.print(folderNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
package com.platform.test;
|
package com.platform.test;
|
||||||
|
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.context.support.FileSystemXmlApplicationContext;
|
import org.springframework.context.support.FileSystemXmlApplicationContext;
|
||||||
|
|
||||||
public class SMBasedTest {
|
public class SMBasedTest {
|
||||||
|
|
||||||
public ApplicationContext applicationContext;
|
public ApplicationContext applicationContext;
|
||||||
|
|
||||||
public SMBasedTest() {
|
public SMBasedTest() {
|
||||||
applicationContext = new FileSystemXmlApplicationContext(
|
applicationContext = new FileSystemXmlApplicationContext(
|
||||||
"test/spring-applicationContext-test.xml");
|
"test/spring-applicationContext-test.xml");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,29 +1,29 @@
|
|||||||
package com.platform.test;
|
package com.platform.test;
|
||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.DriverManager;
|
import java.sql.DriverManager;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
||||||
import com.platform.utils.Configs;
|
import com.platform.utils.Configs;
|
||||||
|
|
||||||
public class TestConnectOralce {
|
public class TestConnectOralce {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
try{
|
try{
|
||||||
Class.forName("oracle.jdbc.driver.OracleDriver");
|
Class.forName("oracle.jdbc.driver.OracleDriver");
|
||||||
Configs.CONSOLE_LOGGER.info("Oracle驱动加载成功");
|
Configs.CONSOLE_LOGGER.info("Oracle驱动加载成功");
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
System.out.println(e);
|
System.out.println(e);
|
||||||
}
|
}
|
||||||
String url = "jdbc:oracle:thin:@192.168.0.110:60758:orcl";
|
String url = "jdbc:oracle:thin:@192.168.0.110:60758:orcl";
|
||||||
try {
|
try {
|
||||||
Connection conn = DriverManager.getConnection(url, "system", "oracle");
|
Connection conn = DriverManager.getConnection(url, "system", "oracle");
|
||||||
System.out.println("连接成功");
|
System.out.println("连接成功");
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
// TODO Auto-generated catch block
|
// TODO Auto-generated catch block
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,53 +1,53 @@
|
|||||||
package com.platform.test;
|
package com.platform.test;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
import com.platform.entities.EncodedInfoEntity;
|
import com.platform.entities.EncodedInfoEntity;
|
||||||
import com.platform.service.EncodeInfoService;
|
import com.platform.service.EncodeInfoService;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
public class TestController {
|
public class TestController {
|
||||||
// private static Logger logger = Logger.getLogger(TestController.class);
|
// private static Logger logger = Logger.getLogger(TestController.class);
|
||||||
@Resource(name = "encodeInfoService")
|
@Resource(name = "encodeInfoService")
|
||||||
private EncodeInfoService eis;
|
private EncodeInfoService eis;
|
||||||
|
|
||||||
public void setEis(EncodeInfoService eis) {
|
public void setEis(EncodeInfoService eis) {
|
||||||
this.eis = eis;
|
this.eis = eis;
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("/hello")
|
@RequestMapping("/hello")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public List<EncodedInfoEntity> hello(String name, HttpServletResponse res) {
|
public List<EncodedInfoEntity> hello(String name, HttpServletResponse res) {
|
||||||
System.out.println(name);
|
System.out.println(name);
|
||||||
return eis.getAllEncodeInfo("system_info");
|
return eis.getAllEncodeInfo("system_info");
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("/json")
|
@RequestMapping("/json")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public List<User> getJson(HttpServletRequest res, HttpServletResponse req) {
|
public List<User> getJson(HttpServletRequest res, HttpServletResponse req) {
|
||||||
List<User> list = new ArrayList<User>();
|
List<User> list = new ArrayList<User>();
|
||||||
list.add(new User("lisi", 1, "男"));
|
list.add(new User("lisi", 1, "男"));
|
||||||
list.add(new User("zhansan", 2, "男"));
|
list.add(new User("zhansan", 2, "男"));
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("log")
|
@RequestMapping("log")
|
||||||
public void testLog(HttpServletResponse res) {
|
public void testLog(HttpServletResponse res) {
|
||||||
System.out.println(eis.getEncodeNameByCode("1", "system_info"));
|
System.out.println(eis.getEncodeNameByCode("1", "system_info"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("/data111.json")
|
@RequestMapping("/data111.json")
|
||||||
public void test(String name, HttpServletResponse res){
|
public void test(String name, HttpServletResponse res){
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,64 +1,64 @@
|
|||||||
package com.platform.test;
|
package com.platform.test;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import com.platform.dao.EncodeInfoDao;
|
import com.platform.dao.EncodeInfoDao;
|
||||||
import com.platform.entities.EncodedInfoEntity;
|
import com.platform.entities.EncodedInfoEntity;
|
||||||
|
|
||||||
public class TestEncodeInfoDao extends SMBasedTest {
|
public class TestEncodeInfoDao extends SMBasedTest {
|
||||||
|
|
||||||
private EncodeInfoDao eiDao;
|
private EncodeInfoDao eiDao;
|
||||||
private String testTableName;
|
private String testTableName;
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void initBeforeFunction() {
|
public void initBeforeFunction() {
|
||||||
eiDao = (EncodeInfoDao) this.applicationContext
|
eiDao = (EncodeInfoDao) this.applicationContext
|
||||||
.getBean("encodeInfoDao");
|
.getBean("encodeInfoDao");
|
||||||
testTableName = "system_info";
|
testTableName = "system_info";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetAllEntityInfo() {
|
public void testGetAllEntityInfo() {
|
||||||
List<EncodedInfoEntity> allEntities = eiDao
|
List<EncodedInfoEntity> allEntities = eiDao
|
||||||
.getAllEntityInfo(testTableName);
|
.getAllEntityInfo(testTableName);
|
||||||
System.out.println(allEntities);
|
System.out.println(allEntities);
|
||||||
Assert.assertTrue(allEntities.size() > 0);
|
Assert.assertTrue(allEntities.size() > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetEncodeNameByCode() {
|
public void testGetEncodeNameByCode() {
|
||||||
String result = eiDao.getEncodeNameByCode("1", testTableName);
|
String result = eiDao.getEncodeNameByCode("1", testTableName);
|
||||||
Assert.assertTrue(result.equals("预算执行系统"));
|
Assert.assertTrue(result.equals("预算执行系统"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetEncodeCodeByName() {
|
public void testGetEncodeCodeByName() {
|
||||||
List<String> result = eiDao
|
List<String> result = eiDao
|
||||||
.getEncodeCodeByName("预算执行系统", testTableName);
|
.getEncodeCodeByName("预算执行系统", testTableName);
|
||||||
Assert.assertTrue(result.size() > 0);
|
Assert.assertTrue(result.size() > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testUpdateEncodeNameByCode() {
|
public void testUpdateEncodeNameByCode() {
|
||||||
int result = eiDao
|
int result = eiDao
|
||||||
.updateEncodeNameByCode("3", "财政一体化平台", testTableName);
|
.updateEncodeNameByCode("3", "财政一体化平台", testTableName);
|
||||||
Assert.assertTrue(result > 0);
|
Assert.assertTrue(result > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testInsertEncodeEntity() {
|
public void testInsertEncodeEntity() {
|
||||||
int result = eiDao.insertEncodeEntity(new EncodedInfoEntity("非税收入系统",
|
int result = eiDao.insertEncodeEntity(new EncodedInfoEntity("非税收入系统",
|
||||||
"4"), testTableName);
|
"4"), testTableName);
|
||||||
Assert.assertTrue(result == 1);
|
Assert.assertTrue(result == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testDeleteEncodeByCode() {
|
public void testDeleteEncodeByCode() {
|
||||||
int result = eiDao.deleteEncodeByCode("5", testTableName);
|
int result = eiDao.deleteEncodeByCode("5", testTableName);
|
||||||
Assert.assertTrue(result >= 1);
|
Assert.assertTrue(result >= 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,45 +1,45 @@
|
|||||||
package com.platform.test;
|
package com.platform.test;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import com.platform.entities.EncodedInfoEntity;
|
import com.platform.entities.EncodedInfoEntity;
|
||||||
import com.platform.service.EncodeInfoService;
|
import com.platform.service.EncodeInfoService;
|
||||||
|
|
||||||
public class TestEncodeService extends SMBasedTest {
|
public class TestEncodeService extends SMBasedTest {
|
||||||
|
|
||||||
private EncodeInfoService eis;
|
private EncodeInfoService eis;
|
||||||
private String testTableName;
|
private String testTableName;
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void initBeforeFunction() {
|
public void initBeforeFunction() {
|
||||||
eis = (EncodeInfoService) this.applicationContext
|
eis = (EncodeInfoService) this.applicationContext
|
||||||
.getBean("encodeInfoService");
|
.getBean("encodeInfoService");
|
||||||
testTableName = "system_info";
|
testTableName = "system_info";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetEncodeNameByCode() {
|
public void testGetEncodeNameByCode() {
|
||||||
String result = eis.getEncodeNameByCode("2", testTableName);
|
String result = eis.getEncodeNameByCode("2", testTableName);
|
||||||
Assert.assertTrue(result.equals("部门预算"));
|
Assert.assertTrue(result.equals("部门预算"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 事务测试
|
* 事务测试
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testDeleteEncodeByCode() {
|
public void testDeleteEncodeByCode() {
|
||||||
eis.deleteEncodeByCode("4", testTableName);
|
eis.deleteEncodeByCode("4", testTableName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetAllEncodeInfo() {
|
public void testGetAllEncodeInfo() {
|
||||||
List<EncodedInfoEntity> allEntities = eis
|
List<EncodedInfoEntity> allEntities = eis
|
||||||
.getAllEncodeInfo(testTableName);
|
.getAllEncodeInfo(testTableName);
|
||||||
System.out.println(allEntities);
|
System.out.println(allEntities);
|
||||||
Assert.assertTrue(allEntities.size() >= 1);
|
Assert.assertTrue(allEntities.size() >= 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,42 +1,42 @@
|
|||||||
package com.platform.test;
|
package com.platform.test;
|
||||||
|
|
||||||
public class User {
|
public class User {
|
||||||
private String name;
|
private String name;
|
||||||
private int id;
|
private int id;
|
||||||
private String sex;
|
private String sex;
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getId() {
|
public int getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(int id) {
|
public void setId(int id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getSex() {
|
public String getSex() {
|
||||||
return sex;
|
return sex;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSex(String sex) {
|
public void setSex(String sex) {
|
||||||
this.sex = sex;
|
this.sex = sex;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User(String name, int id, String sex) {
|
public User(String name, int id, String sex) {
|
||||||
super();
|
super();
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.sex = sex;
|
this.sex = sex;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User(){
|
public User(){
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,64 +1,64 @@
|
|||||||
package com.platform.test;
|
package com.platform.test;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.platform.entities.FolderNode;
|
import com.platform.entities.FolderNode;
|
||||||
|
|
||||||
public class Volume {
|
public class Volume {
|
||||||
private String name;
|
private String name;
|
||||||
private long totalSize;
|
private long totalSize;
|
||||||
private long usedSize;
|
private long usedSize;
|
||||||
private List<Brick> bricks;
|
private List<Brick> bricks;
|
||||||
private List<FolderNode> folderNode;
|
private List<FolderNode> folderNode;
|
||||||
|
|
||||||
public Volume(String volume, long totalSize, long usedSize,
|
public Volume(String volume, long totalSize, long usedSize,
|
||||||
List<Brick> bricks, List<FolderNode> folderNode) {
|
List<Brick> bricks, List<FolderNode> folderNode) {
|
||||||
super();
|
super();
|
||||||
this.name = volume;
|
this.name = volume;
|
||||||
this.totalSize = totalSize;
|
this.totalSize = totalSize;
|
||||||
this.usedSize = usedSize;
|
this.usedSize = usedSize;
|
||||||
this.bricks = bricks;
|
this.bricks = bricks;
|
||||||
this.folderNode = folderNode;
|
this.folderNode = folderNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getVolume() {
|
public String getVolume() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVolume(String name) {
|
public void setVolume(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getTotalSize() {
|
public long getTotalSize() {
|
||||||
return totalSize;
|
return totalSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTotalSize(long totalSize) {
|
public void setTotalSize(long totalSize) {
|
||||||
this.totalSize = totalSize;
|
this.totalSize = totalSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getUsedSize() {
|
public long getUsedSize() {
|
||||||
return usedSize;
|
return usedSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUsedSize(long usedSize) {
|
public void setUsedSize(long usedSize) {
|
||||||
this.usedSize = usedSize;
|
this.usedSize = usedSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Brick> getBricks() {
|
public List<Brick> getBricks() {
|
||||||
return bricks;
|
return bricks;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBricks(List<Brick> bricks) {
|
public void setBricks(List<Brick> bricks) {
|
||||||
this.bricks = bricks;
|
this.bricks = bricks;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<FolderNode> getFolderNode() {
|
public List<FolderNode> getFolderNode() {
|
||||||
return folderNode;
|
return folderNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFolderNode(List<FolderNode> folderNode) {
|
public void setFolderNode(List<FolderNode> folderNode) {
|
||||||
this.folderNode = folderNode;
|
this.folderNode = folderNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
package com.platform.test;
|
package com.platform.test;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
|
||||||
import com.platform.dao.DataInfoDao;
|
import com.platform.dao.DataInfoDao;
|
||||||
|
|
||||||
public class testSystemInfoDao extends SMBasedTest {
|
public class testSystemInfoDao extends SMBasedTest {
|
||||||
private DataInfoDao dfDao;
|
private DataInfoDao dfDao;
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void initBeforeFunction() {
|
public void initBeforeFunction() {
|
||||||
dfDao = (DataInfoDao) this.applicationContext.getBean("dataInfoDao");
|
dfDao = (DataInfoDao) this.applicationContext.getBean("dataInfoDao");
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Test @Test
|
// @Test @Test
|
||||||
public void test() {
|
public void test() {
|
||||||
//System.out.println(dfDao.getCount());
|
//System.out.println(dfDao.getCount());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,64 +1,64 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
|
||||||
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
|
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
|
||||||
xmlns:context="http://www.springframework.org/schema/context"
|
xmlns:context="http://www.springframework.org/schema/context"
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||||
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
||||||
http://www.springframework.org/schema/tx
|
http://www.springframework.org/schema/tx
|
||||||
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
|
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
|
||||||
http://www.springframework.org/schema/aop
|
http://www.springframework.org/schema/aop
|
||||||
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
|
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
|
||||||
http://www.springframework.org/schema/context
|
http://www.springframework.org/schema/context
|
||||||
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
|
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
|
||||||
<!-- 读取db.properties中的属性值 -->
|
<!-- 读取db.properties中的属性值 -->
|
||||||
<bean
|
<bean
|
||||||
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
||||||
<property name="location" value="/WebContent/WEB-INF/config/config.properties"></property>
|
<property name="location" value="/WebContent/WEB-INF/config/config.properties"></property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- 连接MySQL数据库 -->
|
<!-- 连接MySQL数据库 -->
|
||||||
<bean id="mySQLDataSource"
|
<bean id="mySQLDataSource"
|
||||||
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
|
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
|
||||||
<property name="driverClassName" value="${jdbc.mysql.driver}" />
|
<property name="driverClassName" value="${jdbc.mysql.driver}" />
|
||||||
<property name="url" value="${jdbc.mysql.url}" />
|
<property name="url" value="${jdbc.mysql.url}" />
|
||||||
<property name="username" value="${jdbc.mysql.username}" />
|
<property name="username" value="${jdbc.mysql.username}" />
|
||||||
<property name="password" value="${jdbc.mysql.password}" />
|
<property name="password" value="${jdbc.mysql.password}" />
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="mySQLSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
|
<bean id="mySQLSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
|
||||||
<property name="configLocation" value="/WebContent/WEB-INF/config/mybatis-applicationConfig.xml" />
|
<property name="configLocation" value="/WebContent/WEB-INF/config/mybatis-applicationConfig.xml" />
|
||||||
<property name="dataSource" ref="mySQLDataSource" />
|
<property name="dataSource" ref="mySQLDataSource" />
|
||||||
</bean>
|
</bean>
|
||||||
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
|
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
|
||||||
<property name="basePackage" value="com.platform.dao" />
|
<property name="basePackage" value="com.platform.dao" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- 配置声明式事物 -->
|
<!-- 配置声明式事物 -->
|
||||||
<bean id="mySQLTxManager"
|
<bean id="mySQLTxManager"
|
||||||
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
|
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
|
||||||
<property name="dataSource" ref="mySQLDataSource" />
|
<property name="dataSource" ref="mySQLDataSource" />
|
||||||
</bean>
|
</bean>
|
||||||
<tx:advice id="txAdvice" transaction-manager="mySQLTxManager">
|
<tx:advice id="txAdvice" transaction-manager="mySQLTxManager">
|
||||||
<tx:attributes>
|
<tx:attributes>
|
||||||
<tx:method name="delete*" propagation="REQUIRED" />
|
<tx:method name="delete*" propagation="REQUIRED" />
|
||||||
<tx:method name="insert*" propagation="REQUIRED" />
|
<tx:method name="insert*" propagation="REQUIRED" />
|
||||||
<tx:method name="update*" propagation="REQUIRED" />
|
<tx:method name="update*" propagation="REQUIRED" />
|
||||||
<tx:method name="get*" read-only="true" />
|
<tx:method name="get*" read-only="true" />
|
||||||
<tx:method name="select*" read-only="true" />
|
<tx:method name="select*" read-only="true" />
|
||||||
</tx:attributes>
|
</tx:attributes>
|
||||||
</tx:advice>
|
</tx:advice>
|
||||||
<aop:config>
|
<aop:config>
|
||||||
<aop:pointcut expression="execution(* com.platform.service.*.*(..))"
|
<aop:pointcut expression="execution(* com.platform.service.*.*(..))"
|
||||||
id="pointcut" />
|
id="pointcut" />
|
||||||
<aop:advisor advice-ref="txAdvice" pointcut-ref="pointcut" />
|
<aop:advisor advice-ref="txAdvice" pointcut-ref="pointcut" />
|
||||||
</aop:config>
|
</aop:config>
|
||||||
<bean id="user" class="com.platform.test.User">
|
<bean id="user" class="com.platform.test.User">
|
||||||
<property name="name" value="伍名" />
|
<property name="name" value="伍名" />
|
||||||
<property name="id" value="1" />
|
<property name="id" value="1" />
|
||||||
<property name="sex" value="男" />
|
<property name="sex" value="男" />
|
||||||
</bean>
|
</bean>
|
||||||
<context:component-scan base-package="com.platform.*">
|
<context:component-scan base-package="com.platform.*">
|
||||||
<context:exclude-filter type="annotation"
|
<context:exclude-filter type="annotation"
|
||||||
expression="org.springframework.stereotype.Controller" />
|
expression="org.springframework.stereotype.Controller" />
|
||||||
</context:component-scan>
|
</context:component-scan>
|
||||||
</beans>
|
</beans>
|
Loading…
Reference in new issue