food-server
parent
4f9ee4563b
commit
9863a77cc8
@ -0,0 +1,38 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="src" output="target/classes" path="src/main/java">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="optional" value="true"/>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="optional" value="true"/>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
<attribute name="test" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
<attribute name="test" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
|
</classpath>
|
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>food-server</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
@ -0,0 +1,6 @@
|
|||||||
|
eclipse.preferences.version=1
|
||||||
|
encoding//src/main/java=UTF-8
|
||||||
|
encoding//src/main/resources=UTF-8
|
||||||
|
encoding//src/test/java=UTF-8
|
||||||
|
encoding//src/test/resources=UTF-8
|
||||||
|
encoding/<project>=UTF-8
|
@ -0,0 +1,8 @@
|
|||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.release=disabled
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.8
|
@ -0,0 +1,4 @@
|
|||||||
|
activeProfiles=
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
resolveWorkspaceProjects=true
|
||||||
|
version=1
|
@ -0,0 +1,57 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<assembly xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.0.0.xsd">
|
||||||
|
<id>package</id>
|
||||||
|
<formats>
|
||||||
|
<format>dir</format>
|
||||||
|
<format>zip</format>
|
||||||
|
</formats>
|
||||||
|
<includeBaseDirectory>true</includeBaseDirectory>
|
||||||
|
<fileSets>
|
||||||
|
<fileSet>
|
||||||
|
<directory>src/main/bin</directory>
|
||||||
|
<outputDirectory>bin</outputDirectory>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<directory>src/main/resources</directory>
|
||||||
|
<outputDirectory>conf</outputDirectory>
|
||||||
|
<includes>
|
||||||
|
<include>config.properties</include>
|
||||||
|
<include>logback.xml</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<directory>src/main/conf</directory>
|
||||||
|
<outputDirectory>conf</outputDirectory>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<directory>src/main/logs</directory>
|
||||||
|
<outputDirectory>logs</outputDirectory>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<directory>src/main/lib</directory>
|
||||||
|
<outputDirectory>lib</outputDirectory>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<directory>src/main/temp</directory>
|
||||||
|
<outputDirectory>temp</outputDirectory>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<directory>src/main/webapps</directory>
|
||||||
|
<outputDirectory>webapps</outputDirectory>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
<files>
|
||||||
|
<file>
|
||||||
|
<source>${project.build.directory}/${artifactId}-${version}.jar</source>
|
||||||
|
<outputDirectory>lib</outputDirectory>
|
||||||
|
<destName>${artifactId}-${version}.jar</destName>
|
||||||
|
</file>
|
||||||
|
</files>
|
||||||
|
<dependencySets>
|
||||||
|
<dependencySet>
|
||||||
|
<outputDirectory>lib</outputDirectory>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependencySet>
|
||||||
|
</dependencySets>
|
||||||
|
</assembly>
|
@ -0,0 +1,91 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||||
|
<component name="FacetManager">
|
||||||
|
<facet type="Spring" name="Spring">
|
||||||
|
<configuration />
|
||||||
|
</facet>
|
||||||
|
</component>
|
||||||
|
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
||||||
|
<output url="file://$MODULE_DIR$/target/classes" />
|
||||||
|
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
<orderEntry type="module" module-name="food-api" />
|
||||||
|
<orderEntry type="library" name="Maven: com.jwsaas:common-utils:1.0.0" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-context:4.3.13.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-aop:4.3.13.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-expression:4.3.13.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.4" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.10" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.commons:commons-collections4:4.0" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.jwsaas:common-dubbo:1.0.0" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: io.netty:netty-all:4.0.39.Final" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.curator:curator-client:2.11.0" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.zookeeper:zookeeper:3.4.6" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: jline:jline:0.9.94" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.google.guava:guava:16.0.1" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.curator:curator-framework:2.11.0" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.alibaba:dubbo:2.6.5" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.javassist:javassist:3.20.0-GA" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.25" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.slf4j:jcl-over-slf4j:1.7.25" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.25" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.slf4j:log4j-over-slf4j:1.7.25" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: ch.qos.logback:logback-access:1.2.3" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.aspectj:aspectjrt:1.7.3" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.7.3" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: mysql:mysql-connector-java:5.1.46" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-test:4.3.13.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-core:4.3.13.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.redisson:redisson:3.3.2" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: io.netty:netty-common:4.1.8.Final" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.8.Final" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.8.Final" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.8.Final" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.8.Final" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.8.Final" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: javax.cache:cache-api:1.0.0" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: io.projectreactor:reactor-stream:2.0.8.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: io.projectreactor:reactor-core:2.0.8.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.0" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.4" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.18" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.4" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.4" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.9.4" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: de.ruedigermoeller:fst:2.57" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.objenesis:objenesis:2.5.1" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.alibaba:druid:1.1.12" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.freemarker:freemarker:2.3.27-incubating" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:4.3.13.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-beans:4.3.13.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.springframework:spring-tx:4.3.13.RELEASE" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.4.0" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:1.3.0" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
|
||||||
|
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.3" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.6" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpmime:4.5.2" level="project" />
|
||||||
|
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.60" level="project" />
|
||||||
|
<orderEntry type="module-library">
|
||||||
|
<library name="Maven: com.qiniu:qiniu-logging-plugin-logback:1.0.1">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="jar://$MODULE_DIR$/lib/qiniu-logging-plugin-logback-1.0.1.jar!/" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES />
|
||||||
|
</library>
|
||||||
|
</orderEntry>
|
||||||
|
</component>
|
||||||
|
</module>
|
Binary file not shown.
@ -0,0 +1,198 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<project
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
||||||
|
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>com.jwsaas</groupId>
|
||||||
|
<artifactId>food-parent</artifactId>
|
||||||
|
<version>2.0.0</version>
|
||||||
|
</parent>
|
||||||
|
<artifactId>food-server</artifactId>
|
||||||
|
<name>food-server</name>
|
||||||
|
<url>http://maven.apache.org</url>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<maven.deploy.skip>true</maven.deploy.skip>
|
||||||
|
<!-- <druid.version>1.0.31</druid.version> -->
|
||||||
|
<druid.version>1.1.12</druid.version>
|
||||||
|
<freemarker.version>2.3.27-incubating</freemarker.version>
|
||||||
|
<mybatis.version>3.4.0</mybatis.version>
|
||||||
|
<mybatis.spring.version>1.3.0</mybatis.spring.version>
|
||||||
|
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.jwsaas</groupId>
|
||||||
|
<artifactId>food-api</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.jwsaas</groupId>
|
||||||
|
<artifactId>common-utils</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.jwsaas</groupId>
|
||||||
|
<artifactId>common-dubbo</artifactId>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>dubbo</artifactId>
|
||||||
|
<groupId>com.alibaba</groupId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>netty</artifactId>
|
||||||
|
<groupId>io.netty</groupId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba</groupId>
|
||||||
|
<artifactId>dubbo</artifactId>
|
||||||
|
<version>2.6.5</version>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>netty</artifactId>
|
||||||
|
<groupId>org.jboss.netty</groupId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.slf4j</groupId>
|
||||||
|
<artifactId>slf4j-api</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.slf4j</groupId>
|
||||||
|
<artifactId>jcl-over-slf4j</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.slf4j</groupId>
|
||||||
|
<artifactId>jul-to-slf4j</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.slf4j</groupId>
|
||||||
|
<artifactId>log4j-over-slf4j</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>ch.qos.logback</groupId>
|
||||||
|
<artifactId>logback-classic</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>ch.qos.logback</groupId>
|
||||||
|
<artifactId>logback-access</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.aspectj</groupId>
|
||||||
|
<artifactId>aspectjrt</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.aspectj</groupId>
|
||||||
|
<artifactId>aspectjweaver</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>mysql</groupId>
|
||||||
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework</groupId>
|
||||||
|
<artifactId>spring-test</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<!-- redisson -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.redisson</groupId>
|
||||||
|
<artifactId>redisson</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>de.ruedigermoeller</groupId>
|
||||||
|
<artifactId>fst</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<!-- druid -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba</groupId>
|
||||||
|
<artifactId>druid</artifactId>
|
||||||
|
<version>${druid.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- freemarker -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.freemarker</groupId>
|
||||||
|
<artifactId>freemarker</artifactId>
|
||||||
|
<version>${freemarker.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- myBatis -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework</groupId>
|
||||||
|
<artifactId>spring-jdbc</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mybatis</groupId>
|
||||||
|
<artifactId>mybatis</artifactId>
|
||||||
|
<version>${mybatis.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mybatis</groupId>
|
||||||
|
<artifactId>mybatis-spring</artifactId>
|
||||||
|
<version>${mybatis.spring.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.httpcomponents</groupId>
|
||||||
|
<artifactId>httpclient</artifactId>
|
||||||
|
<version>4.5.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.httpcomponents</groupId>
|
||||||
|
<artifactId>httpmime</artifactId>
|
||||||
|
<version>4.5.2</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba</groupId>
|
||||||
|
<artifactId>fastjson</artifactId>
|
||||||
|
<version>1.2.60</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.qiniu</groupId>
|
||||||
|
<artifactId>qiniu-logging-plugin-logback</artifactId>
|
||||||
|
<version>1.0.1</version>
|
||||||
|
<scope>system</scope>
|
||||||
|
<systemPath>${basedir}/lib/qiniu-logging-plugin-logback-1.0.1.jar</systemPath>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
|
<descriptors>
|
||||||
|
<descriptor>assembly.xml</descriptor>
|
||||||
|
</descriptors>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>make-assembly</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>single</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<excludes>
|
||||||
|
<exclude>config.properties</exclude>
|
||||||
|
<exclude>logback.xml</exclude>
|
||||||
|
</excludes>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
@ -0,0 +1,140 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Copyright (c) 1999, 2016 Tanuki Software, Ltd.
|
||||||
|
rem http://www.tanukisoftware.com
|
||||||
|
rem All rights reserved.
|
||||||
|
rem
|
||||||
|
rem This software is the proprietary information of Tanuki Software.
|
||||||
|
rem You shall use it only in accordance with the terms of the
|
||||||
|
rem license agreement you entered into with Tanuki Software.
|
||||||
|
rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html
|
||||||
|
rem
|
||||||
|
rem Java Service Wrapper general passthrough startup script.
|
||||||
|
rem
|
||||||
|
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
rem These settings can be modified to fit the needs of your application
|
||||||
|
rem Optimized for use with version 3.5.28 of the Wrapper.
|
||||||
|
|
||||||
|
rem The base name for the Wrapper binary.
|
||||||
|
set _WRAPPER_BASE=wrapper
|
||||||
|
|
||||||
|
rem The directory where the Wrapper binary (.exe) file is located. It can be
|
||||||
|
rem either an absolute or a relative path. If the path contains any special
|
||||||
|
rem characters, please make sure to quote the variable.
|
||||||
|
set _WRAPPER_DIR=
|
||||||
|
|
||||||
|
rem The name and location of the Wrapper configuration file. This will be used
|
||||||
|
rem if the user does not specify a configuration file as the first parameter to
|
||||||
|
rem this script.
|
||||||
|
set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf"
|
||||||
|
|
||||||
|
rem Makes it possible to override the Wrapper configuration file by specifying it
|
||||||
|
rem as the first parameter.
|
||||||
|
rem set _WRAPPER_CONF_OVERRIDE=true
|
||||||
|
|
||||||
|
rem _PASS_THROUGH tells the script to pass all parameters through to the JVM
|
||||||
|
rem as is.
|
||||||
|
rem If _WRAPPER_CONF_OVERRIDE is specified then all parameters will be passed.
|
||||||
|
rem If not set then all parameters starting with the second will be passed.
|
||||||
|
set _PASS_THROUGH=true
|
||||||
|
|
||||||
|
rem Do not modify anything beyond this point
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Resolve the real path of the wrapper.exe
|
||||||
|
rem For non NT systems, the _REALPATH and _WRAPPER_CONF values
|
||||||
|
rem can be hard-coded below and the following test removed.
|
||||||
|
rem
|
||||||
|
if "%OS%"=="Windows_NT" goto nt
|
||||||
|
echo This script only works with NT-based versions of Windows.
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
:nt
|
||||||
|
rem Find the application home.
|
||||||
|
rem if no path path specified do the default action
|
||||||
|
IF not DEFINED _WRAPPER_DIR goto dir_undefined
|
||||||
|
set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%"
|
||||||
|
if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\"
|
||||||
|
rem check if absolute path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path
|
||||||
|
rem everythig else means relative path
|
||||||
|
set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
goto pathfound
|
||||||
|
|
||||||
|
:dir_undefined
|
||||||
|
rem Use a relative path to the wrapper %~dp0 is location of current script under NT
|
||||||
|
set _REALPATH="%~dp0"
|
||||||
|
goto pathfound
|
||||||
|
:absolute_path
|
||||||
|
rem Use an absolute path to the wrapper
|
||||||
|
set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
|
||||||
|
:pathfound
|
||||||
|
rem
|
||||||
|
rem Decide on the specific Wrapper binary to use (See delta-pack)
|
||||||
|
rem
|
||||||
|
if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe"
|
||||||
|
goto search
|
||||||
|
:amd64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe"
|
||||||
|
goto search
|
||||||
|
:ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe"
|
||||||
|
goto search
|
||||||
|
:search
|
||||||
|
set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
echo Unable to locate a Wrapper executable using any of the following names:
|
||||||
|
echo %_WRAPPER_L_EXE%
|
||||||
|
echo %_WRAPPER_EXE%
|
||||||
|
pause
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Find the wrapper.conf
|
||||||
|
rem
|
||||||
|
:conf
|
||||||
|
if [%_WRAPPER_CONF_OVERRIDE%]==[true] (
|
||||||
|
set _WRAPPER_CONF="%~f1"
|
||||||
|
if not [%_WRAPPER_CONF%]==[""] (
|
||||||
|
shift
|
||||||
|
goto :startup
|
||||||
|
)
|
||||||
|
)
|
||||||
|
set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%"
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Start the Wrapper
|
||||||
|
rem
|
||||||
|
:startup
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
if not [%1]==[] (
|
||||||
|
echo WARNING: Extra arguments will be ignored. Please check usage in the batch file.
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Collect the application parameters
|
||||||
|
:parameters
|
||||||
|
set _PARAMETERS=%_PARAMETERS% %1
|
||||||
|
shift
|
||||||
|
if not [%1]==[] goto :parameters
|
||||||
|
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
%_WRAPPER_EXE% -i %_WRAPPER_CONF%
|
||||||
|
) else (
|
||||||
|
%_WRAPPER_EXE% -i %_WRAPPER_CONF% -- %_PARAMETERS%
|
||||||
|
)
|
||||||
|
if not errorlevel 1 goto :eof
|
||||||
|
pause
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,135 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Copyright (c) 1999, 2016 Tanuki Software, Ltd.
|
||||||
|
rem http://www.tanukisoftware.com
|
||||||
|
rem All rights reserved.
|
||||||
|
rem
|
||||||
|
rem This software is the proprietary information of Tanuki Software.
|
||||||
|
rem You shall use it only in accordance with the terms of the
|
||||||
|
rem license agreement you entered into with Tanuki Software.
|
||||||
|
rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html
|
||||||
|
rem
|
||||||
|
rem Java Service Wrapper general startup script.
|
||||||
|
rem
|
||||||
|
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
rem These settings can be modified to fit the needs of your application
|
||||||
|
rem Optimized for use with version 3.5.28 of the Wrapper.
|
||||||
|
|
||||||
|
rem The base name for the Wrapper binary.
|
||||||
|
set _WRAPPER_BASE=wrapper
|
||||||
|
|
||||||
|
rem The directory where the Wrapper binary (.exe) file is located. It can be
|
||||||
|
rem either an absolute or a relative path. If the path contains any special
|
||||||
|
rem characters, please make sure to quote the variable.
|
||||||
|
set _WRAPPER_DIR=
|
||||||
|
|
||||||
|
rem The name and location of the Wrapper configuration file. This will be used
|
||||||
|
rem if the user does not specify a configuration file as the first parameter to
|
||||||
|
rem this script.
|
||||||
|
set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf"
|
||||||
|
|
||||||
|
rem Makes it possible to override the Wrapper configuration file by specifying it
|
||||||
|
rem as the first parameter.
|
||||||
|
rem set _WRAPPER_CONF_OVERRIDE=true
|
||||||
|
|
||||||
|
rem Note that it is only possible to pass parameters through to the JVM when
|
||||||
|
rem installing the service, or when running in a console.
|
||||||
|
|
||||||
|
rem Do not modify anything beyond this point
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Resolve the real path of the wrapper.exe
|
||||||
|
rem For non NT systems, the _REALPATH and _WRAPPER_CONF values
|
||||||
|
rem can be hard-coded below and the following test removed.
|
||||||
|
rem
|
||||||
|
if "%OS%"=="Windows_NT" goto nt
|
||||||
|
echo This script only works with NT-based versions of Windows.
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
:nt
|
||||||
|
rem Find the application home.
|
||||||
|
rem if no path path specified do the default action
|
||||||
|
IF not DEFINED _WRAPPER_DIR goto dir_undefined
|
||||||
|
set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%"
|
||||||
|
if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\"
|
||||||
|
rem check if absolute path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path
|
||||||
|
rem everythig else means relative path
|
||||||
|
set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
goto pathfound
|
||||||
|
|
||||||
|
:dir_undefined
|
||||||
|
rem Use a relative path to the wrapper %~dp0 is location of current script under NT
|
||||||
|
set _REALPATH="%~dp0"
|
||||||
|
goto pathfound
|
||||||
|
:absolute_path
|
||||||
|
rem Use an absolute path to the wrapper
|
||||||
|
set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
|
||||||
|
:pathfound
|
||||||
|
rem
|
||||||
|
rem Decide on the specific Wrapper binary to use (See delta-pack)
|
||||||
|
rem
|
||||||
|
if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe"
|
||||||
|
goto search
|
||||||
|
:amd64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe"
|
||||||
|
goto search
|
||||||
|
:ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe"
|
||||||
|
goto search
|
||||||
|
:search
|
||||||
|
set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
echo Unable to locate a Wrapper executable using any of the following names:
|
||||||
|
echo %_WRAPPER_L_EXE%
|
||||||
|
echo %_WRAPPER_EXE%
|
||||||
|
pause
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Find the wrapper.conf
|
||||||
|
rem
|
||||||
|
:conf
|
||||||
|
if [%_WRAPPER_CONF_OVERRIDE%]==[true] (
|
||||||
|
set _WRAPPER_CONF="%~f1"
|
||||||
|
if not [%_WRAPPER_CONF%]==[""] (
|
||||||
|
shift
|
||||||
|
goto :startup
|
||||||
|
)
|
||||||
|
)
|
||||||
|
set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%"
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Start the Wrapper
|
||||||
|
rem
|
||||||
|
:startup
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
if not [%1]==[] (
|
||||||
|
echo WARNING: Extra arguments will be ignored. Please check usage in the batch file.
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Collect the application parameters
|
||||||
|
:parameters
|
||||||
|
set _PARAMETERS=%_PARAMETERS% %1
|
||||||
|
shift
|
||||||
|
if not [%1]==[] goto :parameters
|
||||||
|
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
%_WRAPPER_EXE% -a %_WRAPPER_CONF%
|
||||||
|
) else (
|
||||||
|
%_WRAPPER_EXE% -a %_WRAPPER_CONF% -- %_PARAMETERS%
|
||||||
|
)
|
||||||
|
if not errorlevel 1 goto :eof
|
||||||
|
pause
|
@ -0,0 +1,135 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Copyright (c) 1999, 2016 Tanuki Software, Ltd.
|
||||||
|
rem http://www.tanukisoftware.com
|
||||||
|
rem All rights reserved.
|
||||||
|
rem
|
||||||
|
rem This software is the proprietary information of Tanuki Software.
|
||||||
|
rem You shall use it only in accordance with the terms of the
|
||||||
|
rem license agreement you entered into with Tanuki Software.
|
||||||
|
rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html
|
||||||
|
rem
|
||||||
|
rem Java Service Wrapper general startup script.
|
||||||
|
rem
|
||||||
|
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
rem These settings can be modified to fit the needs of your application
|
||||||
|
rem Optimized for use with version 3.5.28 of the Wrapper.
|
||||||
|
|
||||||
|
rem The base name for the Wrapper binary.
|
||||||
|
set _WRAPPER_BASE=wrapper
|
||||||
|
|
||||||
|
rem The directory where the Wrapper binary (.exe) file is located. It can be
|
||||||
|
rem either an absolute or a relative path. If the path contains any special
|
||||||
|
rem characters, please make sure to quote the variable.
|
||||||
|
set _WRAPPER_DIR=
|
||||||
|
|
||||||
|
rem The name and location of the Wrapper configuration file. This will be used
|
||||||
|
rem if the user does not specify a configuration file as the first parameter to
|
||||||
|
rem this script.
|
||||||
|
set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf"
|
||||||
|
|
||||||
|
rem Makes it possible to override the Wrapper configuration file by specifying it
|
||||||
|
rem as the first parameter.
|
||||||
|
rem set _WRAPPER_CONF_OVERRIDE=true
|
||||||
|
|
||||||
|
rem Note that it is only possible to pass parameters through to the JVM when
|
||||||
|
rem installing the service, or when running in a console.
|
||||||
|
|
||||||
|
rem Do not modify anything beyond this point
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Resolve the real path of the wrapper.exe
|
||||||
|
rem For non NT systems, the _REALPATH and _WRAPPER_CONF values
|
||||||
|
rem can be hard-coded below and the following test removed.
|
||||||
|
rem
|
||||||
|
if "%OS%"=="Windows_NT" goto nt
|
||||||
|
echo This script only works with NT-based versions of Windows.
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
:nt
|
||||||
|
rem Find the application home.
|
||||||
|
rem if no path path specified do the default action
|
||||||
|
IF not DEFINED _WRAPPER_DIR goto dir_undefined
|
||||||
|
set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%"
|
||||||
|
if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\"
|
||||||
|
rem check if absolute path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path
|
||||||
|
rem everythig else means relative path
|
||||||
|
set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
goto pathfound
|
||||||
|
|
||||||
|
:dir_undefined
|
||||||
|
rem Use a relative path to the wrapper %~dp0 is location of current script under NT
|
||||||
|
set _REALPATH="%~dp0"
|
||||||
|
goto pathfound
|
||||||
|
:absolute_path
|
||||||
|
rem Use an absolute path to the wrapper
|
||||||
|
set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
|
||||||
|
:pathfound
|
||||||
|
rem
|
||||||
|
rem Decide on the specific Wrapper binary to use (See delta-pack)
|
||||||
|
rem
|
||||||
|
if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe"
|
||||||
|
goto search
|
||||||
|
:amd64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe"
|
||||||
|
goto search
|
||||||
|
:ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe"
|
||||||
|
goto search
|
||||||
|
:search
|
||||||
|
set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
echo Unable to locate a Wrapper executable using any of the following names:
|
||||||
|
echo %_WRAPPER_L_EXE%
|
||||||
|
echo %_WRAPPER_EXE%
|
||||||
|
pause
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Find the wrapper.conf
|
||||||
|
rem
|
||||||
|
:conf
|
||||||
|
if [%_WRAPPER_CONF_OVERRIDE%]==[true] (
|
||||||
|
set _WRAPPER_CONF="%~f1"
|
||||||
|
if not [%_WRAPPER_CONF%]==[""] (
|
||||||
|
shift
|
||||||
|
goto :startup
|
||||||
|
)
|
||||||
|
)
|
||||||
|
set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%"
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Start the Wrapper
|
||||||
|
rem
|
||||||
|
:startup
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
if not [%1]==[] (
|
||||||
|
echo WARNING: Extra arguments will be ignored. Please check usage in the batch file.
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Collect the application parameters
|
||||||
|
:parameters
|
||||||
|
set _PARAMETERS=%_PARAMETERS% %1
|
||||||
|
shift
|
||||||
|
if not [%1]==[] goto :parameters
|
||||||
|
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
%_WRAPPER_EXE% -q %_WRAPPER_CONF%
|
||||||
|
) else (
|
||||||
|
%_WRAPPER_EXE% -q %_WRAPPER_CONF% -- %_PARAMETERS%
|
||||||
|
)
|
||||||
|
if not errorlevel 1 goto :eof
|
||||||
|
pause
|
@ -0,0 +1,135 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Copyright (c) 1999, 2016 Tanuki Software, Ltd.
|
||||||
|
rem http://www.tanukisoftware.com
|
||||||
|
rem All rights reserved.
|
||||||
|
rem
|
||||||
|
rem This software is the proprietary information of Tanuki Software.
|
||||||
|
rem You shall use it only in accordance with the terms of the
|
||||||
|
rem license agreement you entered into with Tanuki Software.
|
||||||
|
rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html
|
||||||
|
rem
|
||||||
|
rem Java Service Wrapper general startup script.
|
||||||
|
rem
|
||||||
|
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
rem These settings can be modified to fit the needs of your application
|
||||||
|
rem Optimized for use with version 3.5.28 of the Wrapper.
|
||||||
|
|
||||||
|
rem The base name for the Wrapper binary.
|
||||||
|
set _WRAPPER_BASE=wrapper
|
||||||
|
|
||||||
|
rem The directory where the Wrapper binary (.exe) file is located. It can be
|
||||||
|
rem either an absolute or a relative path. If the path contains any special
|
||||||
|
rem characters, please make sure to quote the variable.
|
||||||
|
set _WRAPPER_DIR=
|
||||||
|
|
||||||
|
rem The name and location of the Wrapper configuration file. This will be used
|
||||||
|
rem if the user does not specify a configuration file as the first parameter to
|
||||||
|
rem this script.
|
||||||
|
set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf"
|
||||||
|
|
||||||
|
rem Makes it possible to override the Wrapper configuration file by specifying it
|
||||||
|
rem as the first parameter.
|
||||||
|
rem set _WRAPPER_CONF_OVERRIDE=true
|
||||||
|
|
||||||
|
rem Note that it is only possible to pass parameters through to the JVM when
|
||||||
|
rem installing the service, or when running in a console.
|
||||||
|
|
||||||
|
rem Do not modify anything beyond this point
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Resolve the real path of the wrapper.exe
|
||||||
|
rem For non NT systems, the _REALPATH and _WRAPPER_CONF values
|
||||||
|
rem can be hard-coded below and the following test removed.
|
||||||
|
rem
|
||||||
|
if "%OS%"=="Windows_NT" goto nt
|
||||||
|
echo This script only works with NT-based versions of Windows.
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
:nt
|
||||||
|
rem Find the application home.
|
||||||
|
rem if no path path specified do the default action
|
||||||
|
IF not DEFINED _WRAPPER_DIR goto dir_undefined
|
||||||
|
set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%"
|
||||||
|
if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\"
|
||||||
|
rem check if absolute path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path
|
||||||
|
rem everythig else means relative path
|
||||||
|
set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
goto pathfound
|
||||||
|
|
||||||
|
:dir_undefined
|
||||||
|
rem Use a relative path to the wrapper %~dp0 is location of current script under NT
|
||||||
|
set _REALPATH="%~dp0"
|
||||||
|
goto pathfound
|
||||||
|
:absolute_path
|
||||||
|
rem Use an absolute path to the wrapper
|
||||||
|
set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
|
||||||
|
:pathfound
|
||||||
|
rem
|
||||||
|
rem Decide on the specific Wrapper binary to use (See delta-pack)
|
||||||
|
rem
|
||||||
|
if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe"
|
||||||
|
goto search
|
||||||
|
:amd64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe"
|
||||||
|
goto search
|
||||||
|
:ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe"
|
||||||
|
goto search
|
||||||
|
:search
|
||||||
|
set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
echo Unable to locate a Wrapper executable using any of the following names:
|
||||||
|
echo %_WRAPPER_L_EXE%
|
||||||
|
echo %_WRAPPER_EXE%
|
||||||
|
pause
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Find the wrapper.conf
|
||||||
|
rem
|
||||||
|
:conf
|
||||||
|
if [%_WRAPPER_CONF_OVERRIDE%]==[true] (
|
||||||
|
set _WRAPPER_CONF="%~f1"
|
||||||
|
if not [%_WRAPPER_CONF%]==[""] (
|
||||||
|
shift
|
||||||
|
goto :startup
|
||||||
|
)
|
||||||
|
)
|
||||||
|
set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%"
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Start the Wrapper
|
||||||
|
rem
|
||||||
|
:startup
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
if not [%1]==[] (
|
||||||
|
echo WARNING: Extra arguments will be ignored. Please check usage in the batch file.
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Collect the application parameters
|
||||||
|
:parameters
|
||||||
|
set _PARAMETERS=%_PARAMETERS% %1
|
||||||
|
shift
|
||||||
|
if not [%1]==[] goto :parameters
|
||||||
|
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
%_WRAPPER_EXE% -e %_WRAPPER_CONF%
|
||||||
|
) else (
|
||||||
|
%_WRAPPER_EXE% -e %_WRAPPER_CONF% -- %_PARAMETERS%
|
||||||
|
)
|
||||||
|
if not errorlevel 1 goto :eof
|
||||||
|
pause
|
@ -0,0 +1,156 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Copyright (c) 1999, 2016 Tanuki Software, Ltd.
|
||||||
|
rem http://www.tanukisoftware.com
|
||||||
|
rem All rights reserved.
|
||||||
|
rem
|
||||||
|
rem This software is the proprietary information of Tanuki Software.
|
||||||
|
rem You shall use it only in accordance with the terms of the
|
||||||
|
rem license agreement you entered into with Tanuki Software.
|
||||||
|
rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html
|
||||||
|
rem
|
||||||
|
rem Java Service Wrapper general passthrough startup script.
|
||||||
|
rem
|
||||||
|
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
rem These settings can be modified to fit the needs of your application
|
||||||
|
rem Optimized for use with version 3.5.28 of the Wrapper.
|
||||||
|
rem
|
||||||
|
rem ********************************************************************
|
||||||
|
rem NOTE - This script has been modified to run the TestWrapper sample
|
||||||
|
rem application and should NOT be used as a base for your own
|
||||||
|
rem applications. All of the documentation assumes that you are
|
||||||
|
rem working from the default source script:
|
||||||
|
rem WRAPPER_HOME/src/bin/App.bat.in
|
||||||
|
rem ********************************************************************
|
||||||
|
rem
|
||||||
|
rem ********************************************************************
|
||||||
|
rem NOTE - This script has been modified to run the TestWrapper sample
|
||||||
|
rem application and should NOT be used as a base for your own
|
||||||
|
rem applications. All of the documentation assumes that you are
|
||||||
|
rem working from the default source script:
|
||||||
|
rem WRAPPER_HOME/src/bin/App.bat.in
|
||||||
|
rem ********************************************************************
|
||||||
|
|
||||||
|
rem The base name for the Wrapper binary.
|
||||||
|
set _WRAPPER_BASE=wrapper
|
||||||
|
|
||||||
|
rem The directory where the Wrapper binary (.exe) file is located. It can be
|
||||||
|
rem either an absolute or a relative path. If the path contains any special
|
||||||
|
rem characters, please make sure to quote the variable.
|
||||||
|
set _WRAPPER_DIR=
|
||||||
|
|
||||||
|
rem The name and location of the Wrapper configuration file. This will be used
|
||||||
|
rem if the user does not specify a configuration file as the first parameter to
|
||||||
|
rem this script.
|
||||||
|
set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf"
|
||||||
|
|
||||||
|
rem Makes it possible to override the Wrapper configuration file by specifying it
|
||||||
|
rem as the first parameter.
|
||||||
|
rem set _WRAPPER_CONF_OVERRIDE=true
|
||||||
|
|
||||||
|
rem _PASS_THROUGH tells the script to pass all parameters through to the JVM
|
||||||
|
rem as is.
|
||||||
|
rem If _WRAPPER_CONF_OVERRIDE is specified then all parameters will be passed.
|
||||||
|
rem If not set then all parameters starting with the second will be passed.
|
||||||
|
set _PASS_THROUGH=true
|
||||||
|
|
||||||
|
rem Do not modify anything beyond this point
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Resolve the real path of the wrapper.exe
|
||||||
|
rem For non NT systems, the _REALPATH and _WRAPPER_CONF values
|
||||||
|
rem can be hard-coded below and the following test removed.
|
||||||
|
rem
|
||||||
|
if "%OS%"=="Windows_NT" goto nt
|
||||||
|
echo This script only works with NT-based versions of Windows.
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
:nt
|
||||||
|
rem Find the application home.
|
||||||
|
rem if no path path specified do the default action
|
||||||
|
IF not DEFINED _WRAPPER_DIR goto dir_undefined
|
||||||
|
set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%"
|
||||||
|
if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\"
|
||||||
|
rem check if absolute path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path
|
||||||
|
rem everythig else means relative path
|
||||||
|
set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
goto pathfound
|
||||||
|
|
||||||
|
:dir_undefined
|
||||||
|
rem Use a relative path to the wrapper %~dp0 is location of current script under NT
|
||||||
|
set _REALPATH="%~dp0"
|
||||||
|
goto pathfound
|
||||||
|
:absolute_path
|
||||||
|
rem Use an absolute path to the wrapper
|
||||||
|
set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
|
||||||
|
:pathfound
|
||||||
|
rem
|
||||||
|
rem Decide on the specific Wrapper binary to use (See delta-pack)
|
||||||
|
rem
|
||||||
|
if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe"
|
||||||
|
goto search
|
||||||
|
:amd64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe"
|
||||||
|
goto search
|
||||||
|
:ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe"
|
||||||
|
goto search
|
||||||
|
:search
|
||||||
|
set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
echo Unable to locate a Wrapper executable using any of the following names:
|
||||||
|
echo %_WRAPPER_L_EXE%
|
||||||
|
echo %_WRAPPER_EXE%
|
||||||
|
pause
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Find the wrapper.conf
|
||||||
|
rem
|
||||||
|
:conf
|
||||||
|
if [%_WRAPPER_CONF_OVERRIDE%]==[true] (
|
||||||
|
set _WRAPPER_CONF="%~f1"
|
||||||
|
if not [%_WRAPPER_CONF%]==[""] (
|
||||||
|
shift
|
||||||
|
goto :startup
|
||||||
|
)
|
||||||
|
)
|
||||||
|
set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%"
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Start the Wrapper
|
||||||
|
rem
|
||||||
|
:startup
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
if not [%1]==[] (
|
||||||
|
echo WARNING: Extra arguments will be ignored. Please check usage in the batch file.
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Collect the application parameters
|
||||||
|
:parameters
|
||||||
|
set _PARAMETERS=%_PARAMETERS% %1
|
||||||
|
shift
|
||||||
|
if not [%1]==[] goto :parameters
|
||||||
|
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
%_WRAPPER_EXE% -c %_WRAPPER_CONF%
|
||||||
|
) else (
|
||||||
|
%_WRAPPER_EXE% -c %_WRAPPER_CONF% -- %_PARAMETERS%
|
||||||
|
)
|
||||||
|
if not errorlevel 1 goto :eof
|
||||||
|
pause
|
||||||
|
|
||||||
|
|
@ -0,0 +1,135 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Copyright (c) 1999, 2016 Tanuki Software, Ltd.
|
||||||
|
rem http://www.tanukisoftware.com
|
||||||
|
rem All rights reserved.
|
||||||
|
rem
|
||||||
|
rem This software is the proprietary information of Tanuki Software.
|
||||||
|
rem You shall use it only in accordance with the terms of the
|
||||||
|
rem license agreement you entered into with Tanuki Software.
|
||||||
|
rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html
|
||||||
|
rem
|
||||||
|
rem Java Service Wrapper general startup script.
|
||||||
|
rem
|
||||||
|
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
rem These settings can be modified to fit the needs of your application
|
||||||
|
rem Optimized for use with version 3.5.28 of the Wrapper.
|
||||||
|
|
||||||
|
rem The base name for the Wrapper binary.
|
||||||
|
set _WRAPPER_BASE=wrapper
|
||||||
|
|
||||||
|
rem The directory where the Wrapper binary (.exe) file is located. It can be
|
||||||
|
rem either an absolute or a relative path. If the path contains any special
|
||||||
|
rem characters, please make sure to quote the variable.
|
||||||
|
set _WRAPPER_DIR=
|
||||||
|
|
||||||
|
rem The name and location of the Wrapper configuration file. This will be used
|
||||||
|
rem if the user does not specify a configuration file as the first parameter to
|
||||||
|
rem this script.
|
||||||
|
set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf"
|
||||||
|
|
||||||
|
rem Makes it possible to override the Wrapper configuration file by specifying it
|
||||||
|
rem as the first parameter.
|
||||||
|
rem set _WRAPPER_CONF_OVERRIDE=true
|
||||||
|
|
||||||
|
rem Note that it is only possible to pass parameters through to the JVM when
|
||||||
|
rem installing the service, or when running in a console.
|
||||||
|
|
||||||
|
rem Do not modify anything beyond this point
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Resolve the real path of the wrapper.exe
|
||||||
|
rem For non NT systems, the _REALPATH and _WRAPPER_CONF values
|
||||||
|
rem can be hard-coded below and the following test removed.
|
||||||
|
rem
|
||||||
|
if "%OS%"=="Windows_NT" goto nt
|
||||||
|
echo This script only works with NT-based versions of Windows.
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
:nt
|
||||||
|
rem Find the application home.
|
||||||
|
rem if no path path specified do the default action
|
||||||
|
IF not DEFINED _WRAPPER_DIR goto dir_undefined
|
||||||
|
set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%"
|
||||||
|
if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\"
|
||||||
|
rem check if absolute path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path
|
||||||
|
rem everythig else means relative path
|
||||||
|
set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
goto pathfound
|
||||||
|
|
||||||
|
:dir_undefined
|
||||||
|
rem Use a relative path to the wrapper %~dp0 is location of current script under NT
|
||||||
|
set _REALPATH="%~dp0"
|
||||||
|
goto pathfound
|
||||||
|
:absolute_path
|
||||||
|
rem Use an absolute path to the wrapper
|
||||||
|
set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
|
||||||
|
:pathfound
|
||||||
|
rem
|
||||||
|
rem Decide on the specific Wrapper binary to use (See delta-pack)
|
||||||
|
rem
|
||||||
|
if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe"
|
||||||
|
goto search
|
||||||
|
:amd64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe"
|
||||||
|
goto search
|
||||||
|
:ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe"
|
||||||
|
goto search
|
||||||
|
:search
|
||||||
|
set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
echo Unable to locate a Wrapper executable using any of the following names:
|
||||||
|
echo %_WRAPPER_L_EXE%
|
||||||
|
echo %_WRAPPER_EXE%
|
||||||
|
pause
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Find the wrapper.conf
|
||||||
|
rem
|
||||||
|
:conf
|
||||||
|
if [%_WRAPPER_CONF_OVERRIDE%]==[true] (
|
||||||
|
set _WRAPPER_CONF="%~f1"
|
||||||
|
if not [%_WRAPPER_CONF%]==[""] (
|
||||||
|
shift
|
||||||
|
goto :startup
|
||||||
|
)
|
||||||
|
)
|
||||||
|
set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%"
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Start the Wrapper
|
||||||
|
rem
|
||||||
|
:startup
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
if not [%1]==[] (
|
||||||
|
echo WARNING: Extra arguments will be ignored. Please check usage in the batch file.
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Collect the application parameters
|
||||||
|
:parameters
|
||||||
|
set _PARAMETERS=%_PARAMETERS% %1
|
||||||
|
shift
|
||||||
|
if not [%1]==[] goto :parameters
|
||||||
|
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
%_WRAPPER_EXE% -t %_WRAPPER_CONF%
|
||||||
|
) else (
|
||||||
|
%_WRAPPER_EXE% -t %_WRAPPER_CONF% -- %_PARAMETERS%
|
||||||
|
)
|
||||||
|
if not errorlevel 1 goto :eof
|
||||||
|
pause
|
@ -0,0 +1,135 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Copyright (c) 1999, 2016 Tanuki Software, Ltd.
|
||||||
|
rem http://www.tanukisoftware.com
|
||||||
|
rem All rights reserved.
|
||||||
|
rem
|
||||||
|
rem This software is the proprietary information of Tanuki Software.
|
||||||
|
rem You shall use it only in accordance with the terms of the
|
||||||
|
rem license agreement you entered into with Tanuki Software.
|
||||||
|
rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html
|
||||||
|
rem
|
||||||
|
rem Java Service Wrapper general startup script.
|
||||||
|
rem
|
||||||
|
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
rem These settings can be modified to fit the needs of your application
|
||||||
|
rem Optimized for use with version 3.5.28 of the Wrapper.
|
||||||
|
|
||||||
|
rem The base name for the Wrapper binary.
|
||||||
|
set _WRAPPER_BASE=wrapper
|
||||||
|
|
||||||
|
rem The directory where the Wrapper binary (.exe) file is located. It can be
|
||||||
|
rem either an absolute or a relative path. If the path contains any special
|
||||||
|
rem characters, please make sure to quote the variable.
|
||||||
|
set _WRAPPER_DIR=
|
||||||
|
|
||||||
|
rem The name and location of the Wrapper configuration file. This will be used
|
||||||
|
rem if the user does not specify a configuration file as the first parameter to
|
||||||
|
rem this script.
|
||||||
|
set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf"
|
||||||
|
|
||||||
|
rem Makes it possible to override the Wrapper configuration file by specifying it
|
||||||
|
rem as the first parameter.
|
||||||
|
rem set _WRAPPER_CONF_OVERRIDE=true
|
||||||
|
|
||||||
|
rem Note that it is only possible to pass parameters through to the JVM when
|
||||||
|
rem installing the service, or when running in a console.
|
||||||
|
|
||||||
|
rem Do not modify anything beyond this point
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Resolve the real path of the wrapper.exe
|
||||||
|
rem For non NT systems, the _REALPATH and _WRAPPER_CONF values
|
||||||
|
rem can be hard-coded below and the following test removed.
|
||||||
|
rem
|
||||||
|
if "%OS%"=="Windows_NT" goto nt
|
||||||
|
echo This script only works with NT-based versions of Windows.
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
:nt
|
||||||
|
rem Find the application home.
|
||||||
|
rem if no path path specified do the default action
|
||||||
|
IF not DEFINED _WRAPPER_DIR goto dir_undefined
|
||||||
|
set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%"
|
||||||
|
if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\"
|
||||||
|
rem check if absolute path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path
|
||||||
|
rem everythig else means relative path
|
||||||
|
set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
goto pathfound
|
||||||
|
|
||||||
|
:dir_undefined
|
||||||
|
rem Use a relative path to the wrapper %~dp0 is location of current script under NT
|
||||||
|
set _REALPATH="%~dp0"
|
||||||
|
goto pathfound
|
||||||
|
:absolute_path
|
||||||
|
rem Use an absolute path to the wrapper
|
||||||
|
set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
|
||||||
|
:pathfound
|
||||||
|
rem
|
||||||
|
rem Decide on the specific Wrapper binary to use (See delta-pack)
|
||||||
|
rem
|
||||||
|
if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe"
|
||||||
|
goto search
|
||||||
|
:amd64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe"
|
||||||
|
goto search
|
||||||
|
:ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe"
|
||||||
|
goto search
|
||||||
|
:search
|
||||||
|
set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
echo Unable to locate a Wrapper executable using any of the following names:
|
||||||
|
echo %_WRAPPER_L_EXE%
|
||||||
|
echo %_WRAPPER_EXE%
|
||||||
|
pause
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Find the wrapper.conf
|
||||||
|
rem
|
||||||
|
:conf
|
||||||
|
if [%_WRAPPER_CONF_OVERRIDE%]==[true] (
|
||||||
|
set _WRAPPER_CONF="%~f1"
|
||||||
|
if not [%_WRAPPER_CONF%]==[""] (
|
||||||
|
shift
|
||||||
|
goto :startup
|
||||||
|
)
|
||||||
|
)
|
||||||
|
set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%"
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Start the Wrapper
|
||||||
|
rem
|
||||||
|
:startup
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
if not [%1]==[] (
|
||||||
|
echo WARNING: Extra arguments will be ignored. Please check usage in the batch file.
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Collect the application parameters
|
||||||
|
:parameters
|
||||||
|
set _PARAMETERS=%_PARAMETERS% %1
|
||||||
|
shift
|
||||||
|
if not [%1]==[] goto :parameters
|
||||||
|
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
%_WRAPPER_EXE% -p %_WRAPPER_CONF%
|
||||||
|
) else (
|
||||||
|
%_WRAPPER_EXE% -p %_WRAPPER_CONF% -- %_PARAMETERS%
|
||||||
|
)
|
||||||
|
if not errorlevel 1 goto :eof
|
||||||
|
pause
|
@ -0,0 +1,135 @@
|
|||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Copyright (c) 1999, 2016 Tanuki Software, Ltd.
|
||||||
|
rem http://www.tanukisoftware.com
|
||||||
|
rem All rights reserved.
|
||||||
|
rem
|
||||||
|
rem This software is the proprietary information of Tanuki Software.
|
||||||
|
rem You shall use it only in accordance with the terms of the
|
||||||
|
rem license agreement you entered into with Tanuki Software.
|
||||||
|
rem http://wrapper.tanukisoftware.com/doc/english/licenseOverview.html
|
||||||
|
rem
|
||||||
|
rem Java Service Wrapper general startup script.
|
||||||
|
rem
|
||||||
|
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
rem These settings can be modified to fit the needs of your application
|
||||||
|
rem Optimized for use with version 3.5.28 of the Wrapper.
|
||||||
|
|
||||||
|
rem The base name for the Wrapper binary.
|
||||||
|
set _WRAPPER_BASE=wrapper
|
||||||
|
|
||||||
|
rem The directory where the Wrapper binary (.exe) file is located. It can be
|
||||||
|
rem either an absolute or a relative path. If the path contains any special
|
||||||
|
rem characters, please make sure to quote the variable.
|
||||||
|
set _WRAPPER_DIR=
|
||||||
|
|
||||||
|
rem The name and location of the Wrapper configuration file. This will be used
|
||||||
|
rem if the user does not specify a configuration file as the first parameter to
|
||||||
|
rem this script.
|
||||||
|
set _WRAPPER_CONF_DEFAULT="../conf/%_WRAPPER_BASE%.conf"
|
||||||
|
|
||||||
|
rem Makes it possible to override the Wrapper configuration file by specifying it
|
||||||
|
rem as the first parameter.
|
||||||
|
rem set _WRAPPER_CONF_OVERRIDE=true
|
||||||
|
|
||||||
|
rem Note that it is only possible to pass parameters through to the JVM when
|
||||||
|
rem installing the service, or when running in a console.
|
||||||
|
|
||||||
|
rem Do not modify anything beyond this point
|
||||||
|
rem -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Resolve the real path of the wrapper.exe
|
||||||
|
rem For non NT systems, the _REALPATH and _WRAPPER_CONF values
|
||||||
|
rem can be hard-coded below and the following test removed.
|
||||||
|
rem
|
||||||
|
if "%OS%"=="Windows_NT" goto nt
|
||||||
|
echo This script only works with NT-based versions of Windows.
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
:nt
|
||||||
|
rem Find the application home.
|
||||||
|
rem if no path path specified do the default action
|
||||||
|
IF not DEFINED _WRAPPER_DIR goto dir_undefined
|
||||||
|
set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR:"=%"
|
||||||
|
if not "%_WRAPPER_DIR:~-2,1%" == "\" set _WRAPPER_DIR_QUOTED="%_WRAPPER_DIR_QUOTED:"=%\"
|
||||||
|
rem check if absolute path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~2,1%" == ":" goto absolute_path
|
||||||
|
if "%_WRAPPER_DIR_QUOTED:~1,1%" == "\" goto absolute_path
|
||||||
|
rem everythig else means relative path
|
||||||
|
set _REALPATH="%~dp0%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
goto pathfound
|
||||||
|
|
||||||
|
:dir_undefined
|
||||||
|
rem Use a relative path to the wrapper %~dp0 is location of current script under NT
|
||||||
|
set _REALPATH="%~dp0"
|
||||||
|
goto pathfound
|
||||||
|
:absolute_path
|
||||||
|
rem Use an absolute path to the wrapper
|
||||||
|
set _REALPATH="%_WRAPPER_DIR_QUOTED:"=%"
|
||||||
|
|
||||||
|
:pathfound
|
||||||
|
rem
|
||||||
|
rem Decide on the specific Wrapper binary to use (See delta-pack)
|
||||||
|
rem
|
||||||
|
if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto amd64
|
||||||
|
if "%PROCESSOR_ARCHITECTURE%"=="IA64" goto ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-32.exe"
|
||||||
|
goto search
|
||||||
|
:amd64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-x86-64.exe"
|
||||||
|
goto search
|
||||||
|
:ia64
|
||||||
|
set _WRAPPER_L_EXE="%_REALPATH:"=%%_WRAPPER_BASE%-windows-ia-64.exe"
|
||||||
|
goto search
|
||||||
|
:search
|
||||||
|
set _WRAPPER_EXE="%_WRAPPER_L_EXE:"=%"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
set _WRAPPER_EXE="%_REALPATH:"=%%_WRAPPER_BASE%.exe"
|
||||||
|
if exist %_WRAPPER_EXE% goto conf
|
||||||
|
echo Unable to locate a Wrapper executable using any of the following names:
|
||||||
|
echo %_WRAPPER_L_EXE%
|
||||||
|
echo %_WRAPPER_EXE%
|
||||||
|
pause
|
||||||
|
goto :eof
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Find the wrapper.conf
|
||||||
|
rem
|
||||||
|
:conf
|
||||||
|
if [%_WRAPPER_CONF_OVERRIDE%]==[true] (
|
||||||
|
set _WRAPPER_CONF="%~f1"
|
||||||
|
if not [%_WRAPPER_CONF%]==[""] (
|
||||||
|
shift
|
||||||
|
goto :startup
|
||||||
|
)
|
||||||
|
)
|
||||||
|
set _WRAPPER_CONF="%_WRAPPER_CONF_DEFAULT:"=%"
|
||||||
|
|
||||||
|
rem
|
||||||
|
rem Start the Wrapper
|
||||||
|
rem
|
||||||
|
:startup
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
if not [%1]==[] (
|
||||||
|
echo WARNING: Extra arguments will be ignored. Please check usage in the batch file.
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Collect the application parameters
|
||||||
|
:parameters
|
||||||
|
set _PARAMETERS=%_PARAMETERS% %1
|
||||||
|
shift
|
||||||
|
if not [%1]==[] goto :parameters
|
||||||
|
|
||||||
|
if not [%_PASS_THROUGH%]==[true] (
|
||||||
|
%_WRAPPER_EXE% -r %_WRAPPER_CONF%
|
||||||
|
) else (
|
||||||
|
%_WRAPPER_EXE% -r %_WRAPPER_CONF% -- %_PARAMETERS%
|
||||||
|
)
|
||||||
|
if not errorlevel 1 goto :eof
|
||||||
|
pause
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,55 @@
|
|||||||
|
encoding=UTF-8
|
||||||
|
wrapper.java.command=java
|
||||||
|
#set.JAVA_HOME=/java/path
|
||||||
|
#wrapper.java.command=%JAVA_HOME%/bin/java
|
||||||
|
#wrapper.java.command.loglevel=INFO
|
||||||
|
|
||||||
|
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
|
||||||
|
wrapper.java.classpath.1=./
|
||||||
|
wrapper.java.classpath.2=../conf/
|
||||||
|
wrapper.java.classpath.3=../lib/*.jar
|
||||||
|
|
||||||
|
wrapper.java.library.path.1=../lib
|
||||||
|
|
||||||
|
# Java Additional Parameters
|
||||||
|
wrapper.java.additional.1=-Djava.io.tmpdir=../temp/
|
||||||
|
wrapper.java.additional.2=-Dmiddleware.basedir=../
|
||||||
|
wrapper.java.additional.3=-Djava.net.preferIPv4Stack=true
|
||||||
|
wrapper.java.additional.4=-Dsun.lang.ClassLoader.allowArraySyntax=true
|
||||||
|
wrapper.java.additional.5=-Xms512m
|
||||||
|
wrapper.java.additional.6=-Xmx1024m
|
||||||
|
wrapper.java.additional.7=-Ddubbo.application.logger=slf4j
|
||||||
|
wrapper.java.additional.8=-Ddubbo.spring.config=classpath*:META-INF/spring/spring*.xml
|
||||||
|
wrapper.java.additional.9=-Ddubbo.container=logback,spring
|
||||||
|
|
||||||
|
#wrapper.java.initmemory=3
|
||||||
|
#wrapper.java.maxmemory=64
|
||||||
|
|
||||||
|
wrapper.app.parameter.1=com.jwsaas.Main
|
||||||
|
|
||||||
|
# wrapper.debug=TRUE
|
||||||
|
|
||||||
|
wrapper.console.format=PM
|
||||||
|
wrapper.console.loglevel=INFO
|
||||||
|
|
||||||
|
wrapper.logfile=../logs/midd_YYYYMMDD.log
|
||||||
|
wrapper.logfile.rollmode=DATE
|
||||||
|
wrapper.logfile.format=LPTM
|
||||||
|
wrapper.logfile.loglevel=INFO
|
||||||
|
wrapper.logfile.maxsize=0
|
||||||
|
wrapper.logfile.maxfiles=0
|
||||||
|
wrapper.syslog.loglevel=NONE
|
||||||
|
|
||||||
|
wrapper.ignore_sequence_gaps=TRUE
|
||||||
|
wrapper.pidfile.strict=TRUE
|
||||||
|
wrapper.console.title=Food-2.0 Server Application
|
||||||
|
|
||||||
|
wrapper.name=food2_server
|
||||||
|
wrapper.displayname=Food-2.0 Server Application
|
||||||
|
wrapper.description=Food-2.0 Server Application Description
|
||||||
|
wrapper.ntservice.dependency.1=
|
||||||
|
wrapper.ntservice.starttype=AUTO_START
|
||||||
|
wrapper.ntservice.interactive=true
|
||||||
|
|
||||||
|
wrapper.filter.trigger.1=java.lang.OutOfMemoryError
|
||||||
|
wrapper.filter.action.1=RESTART
|
@ -0,0 +1,9 @@
|
|||||||
|
package com.jwsaas;
|
||||||
|
|
||||||
|
public class Main {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
com.alibaba.dubbo.container.Main.main(args);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,226 @@
|
|||||||
|
package com.jwsaas.cache.impl;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collection;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.LinkedHashSet;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
|
import org.redisson.api.RLock;
|
||||||
|
import org.redisson.api.RMapCache;
|
||||||
|
import org.redisson.api.RQueue;
|
||||||
|
import org.redisson.api.RedissonClient;
|
||||||
|
import org.redisson.client.codec.Codec;
|
||||||
|
import org.redisson.codec.FstCodec;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import com.jwsaas.cache.CacheService;
|
||||||
|
|
||||||
|
public class RedisCacheServiceImpl implements CacheService {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 5878626075536553656L;
|
||||||
|
|
||||||
|
protected static Logger logger = LoggerFactory.getLogger(RedisCacheServiceImpl.class);
|
||||||
|
|
||||||
|
private final String PREFIX = "foodV2";
|
||||||
|
|
||||||
|
private RedissonClient redissonClient;
|
||||||
|
|
||||||
|
private Codec codec = new FstCodec();
|
||||||
|
|
||||||
|
public RedissonClient getRedissonClient() {
|
||||||
|
return redissonClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRedissonClient(RedissonClient redissonClient) {
|
||||||
|
this.redissonClient = redissonClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String buildCacheName(String tenantId, String key) {
|
||||||
|
return PREFIX + ":" + tenantId + ":" + key;
|
||||||
|
// return tenantId + ":" + key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public RLock getLock(String tenantId, String lockName) {
|
||||||
|
String cacheName = buildCacheName(tenantId, lockName);
|
||||||
|
return redissonClient.getLock(cacheName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void set(String tenantId, String key, Object value, int secondsToExpire) throws Exception {
|
||||||
|
try {
|
||||||
|
String cacheName = buildCacheName(tenantId, key);
|
||||||
|
RMapCache<String, Object> map = redissonClient.getMapCache(cacheName, codec);
|
||||||
|
if (secondsToExpire != 0) {
|
||||||
|
map.put(key.toString(), value, secondsToExpire, TimeUnit.SECONDS);
|
||||||
|
map.expire(secondsToExpire, TimeUnit.SECONDS);
|
||||||
|
} else {
|
||||||
|
map.put(key.toString(), value);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("RedisCacheServiceImpl.set ERROR", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Object get(String tenantId, String key) throws Exception {
|
||||||
|
try {
|
||||||
|
String cacheName = buildCacheName(tenantId, key);
|
||||||
|
RMapCache<String, Object> map = redissonClient.getMapCache(cacheName, codec);
|
||||||
|
if (map.get(key) != null) {
|
||||||
|
return map.get(key);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("RedisCacheServiceImpl.get ERROR", e);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Object del(String tenantId, String key) throws Exception {
|
||||||
|
Object previos = null;
|
||||||
|
try {
|
||||||
|
String cacheName = buildCacheName(tenantId, key);
|
||||||
|
RMapCache<String, Object> map = redissonClient.getMapCache(cacheName, codec);
|
||||||
|
previos = map.get(key);
|
||||||
|
if (previos != null) {
|
||||||
|
map.remove(key);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("RedisCacheServiceImpl.del ERROR.", e);
|
||||||
|
}
|
||||||
|
return previos;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Set<String> keys(String tenantId) throws Exception {
|
||||||
|
HashSet<String> result = new LinkedHashSet<String>();
|
||||||
|
try {
|
||||||
|
String cacheName = buildCacheName(tenantId, "*");
|
||||||
|
Collection<String> keys = redissonClient.getKeys().findKeysByPattern(cacheName);
|
||||||
|
if (keys != null && keys.size() > 0) {
|
||||||
|
for (String key : keys) {
|
||||||
|
String _value = key;
|
||||||
|
// 只需要存入Key
|
||||||
|
result.add(_value.substring(_value.lastIndexOf(":") + 1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("RedisCacheServiceImpl.keys ERROR.", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!CollectionUtils.isEmpty(result)) {
|
||||||
|
return Collections.unmodifiableSet(result);
|
||||||
|
} else {
|
||||||
|
return Collections.emptySet();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void clear(String tenantId) throws Exception {
|
||||||
|
try {
|
||||||
|
String cacheName = buildCacheName(tenantId, "*");
|
||||||
|
redissonClient.getKeys().deleteByPattern(cacheName);
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("RedisCacheServiceImpl.clear ERROR.", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int size(String tenantId) throws Exception {
|
||||||
|
int size = 0;
|
||||||
|
try {
|
||||||
|
String cacheName = buildCacheName(tenantId, "*");
|
||||||
|
size = redissonClient.getKeys().findKeysByPattern(cacheName).size();
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("RedisCacheServiceImpl.size ERROR.", e);
|
||||||
|
}
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Collection<Object> values(String tenantId) throws Exception {
|
||||||
|
List<Object> result = null;
|
||||||
|
try {
|
||||||
|
Set<String> keys = this.keys(tenantId);
|
||||||
|
if (keys != null && keys.size() > 0) {
|
||||||
|
result = new ArrayList<Object>(keys.size());
|
||||||
|
for (String key : keys) {
|
||||||
|
Object _value = this.get(tenantId, key);
|
||||||
|
if (_value != null) {
|
||||||
|
result.add(_value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("RedisCacheServiceImpl.values ERROR.", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!CollectionUtils.isEmpty(result)) {
|
||||||
|
return Collections.unmodifiableList(result);
|
||||||
|
} else {
|
||||||
|
return Collections.emptyList();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Object getQueue(String tenantId, String key) throws Exception {
|
||||||
|
try {
|
||||||
|
String cacheName = buildCacheName(tenantId, key);
|
||||||
|
RQueue<Object> cacheQueue = redissonClient.getQueue(cacheName, codec);
|
||||||
|
Object element = cacheQueue.poll();
|
||||||
|
if (element != null) {
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("RedisCacheServiceImpl.getQueue ERROR", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Integer getQueueSize(String tenantId, String key) throws Exception {
|
||||||
|
try {
|
||||||
|
String cacheName = buildCacheName(tenantId, key);
|
||||||
|
RQueue<Object> cacheQueue = redissonClient.getQueue(cacheName, codec);
|
||||||
|
return cacheQueue.size();
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("RedisCacheServiceImpl.getQueueSize ERROR", e);
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setQueue(String tenantId, String key, Boolean clearFlag, Collection value, int secondsToExpire) throws Exception {
|
||||||
|
try {
|
||||||
|
String cacheName = buildCacheName(tenantId, key);
|
||||||
|
RQueue<Object> cacheQueue = redissonClient.getQueue(cacheName, codec);
|
||||||
|
clearFlag = (clearFlag == null) ? true : false;
|
||||||
|
if (clearFlag) {
|
||||||
|
cacheQueue.clear();
|
||||||
|
}
|
||||||
|
cacheQueue.addAll(value);
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("RedisCacheServiceImpl.setQueue.collection ERROR", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setQueue(String tenantId, String key, Object value, int secondsToExpire) throws Exception {
|
||||||
|
try {
|
||||||
|
String cacheName = buildCacheName(tenantId, key);
|
||||||
|
RQueue<Object> cacheQueue = redissonClient.getQueue(cacheName, codec);
|
||||||
|
cacheQueue.add(value);
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("RedisCacheServiceImpl.setQueue.object ERROR", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,77 @@
|
|||||||
|
package com.jwsaas.cache.impl;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.redisson.Redisson;
|
||||||
|
import org.redisson.api.RedissonClient;
|
||||||
|
import org.redisson.config.Config;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
@Configuration
|
||||||
|
public class RedissonConfiguration {
|
||||||
|
|
||||||
|
protected static Logger logger = LoggerFactory.getLogger(RedissonConfiguration.class);
|
||||||
|
|
||||||
|
@Value("${redis.type}")
|
||||||
|
private String redisType;
|
||||||
|
|
||||||
|
@Value("${redis.url}")
|
||||||
|
private String redisUrl;
|
||||||
|
|
||||||
|
@Value("${redis.auth}")
|
||||||
|
private String redisAuth;
|
||||||
|
|
||||||
|
@Value("${redis.database}")
|
||||||
|
private Integer redisDatabase;
|
||||||
|
|
||||||
|
@Value("${redis.timeout}")
|
||||||
|
private Integer redisTimeout;
|
||||||
|
|
||||||
|
@Value("${redis.poolsize}")
|
||||||
|
private Integer poolSize;
|
||||||
|
|
||||||
|
@Value("${redis.subpoolsize}")
|
||||||
|
private Integer subPoolSize;
|
||||||
|
|
||||||
|
private enum RedisType {
|
||||||
|
SINGLE("single");
|
||||||
|
|
||||||
|
private String stringValue;
|
||||||
|
|
||||||
|
RedisType(String s) {
|
||||||
|
stringValue = s;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStringValue() {
|
||||||
|
return stringValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Bean(destroyMethod = "shutdown")
|
||||||
|
public RedissonClient redissonClient() {
|
||||||
|
RedissonClient redissonClient = null;
|
||||||
|
try {
|
||||||
|
Config config = new Config();
|
||||||
|
if (StringUtils.isEmpty(redisType) || redisType.equals(RedisType.SINGLE.getStringValue())) {
|
||||||
|
config.useSingleServer().setAddress(redisUrl);
|
||||||
|
config.useSingleServer().setDatabase(redisDatabase);
|
||||||
|
config.useSingleServer().setTimeout(redisTimeout);
|
||||||
|
config.useSingleServer().setConnectTimeout(redisTimeout);
|
||||||
|
config.useSingleServer().setSubscriptionConnectionPoolSize(subPoolSize);
|
||||||
|
config.useSingleServer().setConnectionPoolSize(poolSize);
|
||||||
|
if (StringUtils.isNotEmpty(redisAuth)) {
|
||||||
|
config.useSingleServer().setPassword(redisAuth);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
redissonClient = Redisson.create(config);
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("redissonClient init Exception", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
return redissonClient;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.jwsaas.dao;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.Tenant;
|
||||||
|
|
||||||
|
public interface TenantDao extends BaseDao<Tenant, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.AdjustPriceTicket;
|
||||||
|
import com.jwsaas.mybatis.domain.PageBounds;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.jwsaas.condition.Criteria;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface AdjustPriceTicketDao extends BaseDao<AdjustPriceTicket, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取分页集合对象
|
||||||
|
*
|
||||||
|
* @param tenantId
|
||||||
|
* 租户ID
|
||||||
|
* @param criteria
|
||||||
|
* 查询条件
|
||||||
|
* @param pageBounds
|
||||||
|
* 分页参数
|
||||||
|
* @return 分页对象
|
||||||
|
*/
|
||||||
|
List<Map<String,Object>> getPagerByStoreId(String tenantId, Criteria criteria,PageBounds pageBounds);
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.Agent;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface AgentDao extends BaseDao<Agent, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.condition.Criteria;
|
||||||
|
import com.jwsaas.entity.food.AgentStore;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
import com.jwsaas.mybatis.domain.PageBounds;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface AgentStoreDao extends BaseDao<AgentStore, String> {
|
||||||
|
|
||||||
|
List<String> getValueIdsByAgentId(String tenantId, Integer valueType, String agentId);
|
||||||
|
List<String> getValueIdsByAgentId(String tenantId, Integer valueType, String agentId,boolean isBatch);
|
||||||
|
|
||||||
|
List<AgentStore> getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds);
|
||||||
|
|
||||||
|
List<AgentStore> getListExtend(String tenantId, Criteria criteria);
|
||||||
|
List<AgentStore> getListExtend(String tenantId, Criteria criteria,boolean isBatch);
|
||||||
|
|
||||||
|
List<String> getStoreIdsByAreaValueId(String tenantId, String agentId);
|
||||||
|
List<String> getStoreIdsByAreaValueId(String tenantId, String agentId,boolean isBatch);
|
||||||
|
|
||||||
|
List<String> getAllStoreIdsByAgentId(String tenantId, String agentId);
|
||||||
|
List<String> getAllStoreIdsByAgentId(String tenantId, String agentId,boolean isBatch);
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.condition.Criteria;
|
||||||
|
import com.jwsaas.entity.food.AskGoodsDetail;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
import com.jwsaas.mybatis.domain.PageBounds;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface AskGoodsDetailDao extends BaseDao<AskGoodsDetail, String> {
|
||||||
|
|
||||||
|
List<AskGoodsDetail> getPagerWithDispatch(String tenantId, Criteria criteria, PageBounds pageBounds);
|
||||||
|
|
||||||
|
List<AskGoodsDetail> getListByAskGoodsSummary(String tenantId, Criteria criteria);
|
||||||
|
|
||||||
|
List<AskGoodsDetail> getPagerByAskGoodsSummary(String tenantId, Criteria criteria, PageBounds pageBounds);
|
||||||
|
|
||||||
|
List<AskGoodsDetail> getPagerWithTypeIdByAskGoodsSummary(String tenantId, Criteria criteria, PageBounds pageBounds);
|
||||||
|
|
||||||
|
List<AskGoodsDetail> getListWithTypeIdByAskGoodsSummary(String tenantId, Criteria criteria);
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.AskGoodsTemplate;
|
||||||
|
import com.jwsaas.mybatis.domain.PageBounds;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.jwsaas.condition.Criteria;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface AskGoodsTemplateDao extends BaseDao<AskGoodsTemplate, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据门店ID,获取该门店可用模板信息
|
||||||
|
*/
|
||||||
|
List<AskGoodsTemplate> getPagerByStoreId(String tenantId, Criteria criteria, PageBounds pageBounds, String storeId);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.AskGoodsTemplateDetail;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface AskGoodsTemplateDetailDao extends BaseDao<AskGoodsTemplateDetail, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.condition.Criteria;
|
||||||
|
import com.jwsaas.entity.food.AskGoodsTemplateStore;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface AskGoodsTemplateStoreDao extends BaseDao<AskGoodsTemplateStore, String> {
|
||||||
|
|
||||||
|
List<AskGoodsTemplateStore> getStoreInfoList(String tenantId, Criteria criteria,boolean isBatch);
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.AskGoodsTicketLog;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface AskGoodsTicketLogDao extends BaseDao<AskGoodsTicketLog, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.AskGoodsTicketPay;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface AskGoodsTicketPayDao extends BaseDao<AskGoodsTicketPay, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.BaiduFood;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface BaiduFoodDao extends BaseDao<BaiduFood, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.BaiduOrder;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface BaiduOrderDao extends BaseDao<BaiduOrder, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.BaiduOrderProduct;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface BaiduOrderProductDao extends BaseDao<BaiduOrderProduct, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
import com.jwsaas.entity.food.Brand;
|
||||||
|
|
||||||
|
public interface BrandDao extends BaseDao<Brand, String> {
|
||||||
|
|
||||||
|
String selectMaxValue(String tenantId, String property);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取集合对象
|
||||||
|
*
|
||||||
|
* @param tenantId
|
||||||
|
* 租户ID
|
||||||
|
* @param criteria
|
||||||
|
* 查询条件
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<Brand> getListBystoreId(String tenantId, String storeId);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.BusinessPlanDetail;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface BusinessPlanDetailDao extends BaseDao<BusinessPlanDetail, String> {
|
||||||
|
|
||||||
|
public List<BusinessPlanDetail> getBusinessPlanDetailByStoreId(String tenantId, String storeId);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CandaoStore;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CandaoStoreDao extends BaseDao<CandaoStore, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.Category;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CategoryDao extends BaseDao<Category, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CheckTemplate;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CheckTemplateDao extends BaseDao<CheckTemplate, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CheckTemplateDetail;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CheckTemplateDetailDao extends BaseDao<CheckTemplateDetail, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CheckTicket;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CheckTicketDao extends BaseDao<CheckTicket, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.condition.Criteria;
|
||||||
|
import com.jwsaas.entity.food.CheckTicketDetail;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
import com.jwsaas.mybatis.domain.PageBounds;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface CheckTicketDetailDao extends BaseDao<CheckTicketDetail, String> {
|
||||||
|
|
||||||
|
List<CheckTicketDetail> getExtendsPager(String tenantId, Criteria criteria, PageBounds pageBounds);
|
||||||
|
|
||||||
|
List<CheckTicketDetail> getExtendsList(String tenantId, Criteria criteria);
|
||||||
|
List<CheckTicketDetail> getExtendsList(String tenantId, Criteria criteria,boolean isBatch);
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CheckTicketLog;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CheckTicketLogDao extends BaseDao<CheckTicketLog, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CostFeeItem;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CostFeeItemDao extends BaseDao<CostFeeItem, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CostFeeType;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CostFeeTypeDao extends BaseDao<CostFeeType, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CostTicket;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CostTicketDao extends BaseDao<CostTicket, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CostTicketPayType;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CostTicketPayTypeDao extends BaseDao<CostTicketPayType, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CostTicketProductChange;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CostTicketProductChangeDao extends BaseDao<CostTicketProductChange, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CostTicketProductFixedChange;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CostTicketProductFixedChangeDao extends BaseDao<CostTicketProductFixedChange, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CostTicketProductMoreChange;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CostTicketProductMoreChangeDao extends BaseDao<CostTicketProductMoreChange, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CostTicketProductOtherChange;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CostTicketProductOtherChangeDao extends BaseDao<CostTicketProductOtherChange, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CostTicketProductType;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CostTicketProductTypeDao extends BaseDao<CostTicketProductType, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CostTicketTemplateProductChange;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CostTicketTemplateProductChangeDao extends BaseDao<CostTicketTemplateProductChange, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CostTicketTemplateProductFixedChange;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CostTicketTemplateProductFixedChangeDao extends BaseDao<CostTicketTemplateProductFixedChange, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CostTicketTemplateProductMoreChange;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CostTicketTemplateProductMoreChangeDao extends BaseDao<CostTicketTemplateProductMoreChange, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CostTicketTemplateProductOtherChange;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CostTicketTemplateProductOtherChangeDao extends BaseDao<CostTicketTemplateProductOtherChange, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CouponCodeDetail;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CouponCodeDetailDao extends BaseDao<CouponCodeDetail, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.jwsaas.condition.Criteria;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
import com.jwsaas.entity.food.Coupon;
|
||||||
|
import com.jwsaas.mybatis.domain.PageBounds;
|
||||||
|
|
||||||
|
public interface CouponDao extends BaseDao<Coupon, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据门店ID,获取优惠券信息
|
||||||
|
*/
|
||||||
|
List<Coupon> getPagerByStoreId(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.condition.Criteria;
|
||||||
|
import com.jwsaas.entity.food.CouponStore;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface CouponStoreDao extends BaseDao<CouponStore, String> {
|
||||||
|
|
||||||
|
List<String> getStoreIdList(String tenantId, Criteria criteria);
|
||||||
|
|
||||||
|
List<String> getStoreIdList(String tenantId, Criteria criteria,boolean isBatch);
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.CouponTicket;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface CouponTicketDao extends BaseDao<CouponTicket, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.condition.Criteria;
|
||||||
|
import com.jwsaas.entity.food.Deliver;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface DeliverDao extends BaseDao<Deliver, String> {
|
||||||
|
|
||||||
|
List<String> getStoreIdsByDeliverId(String tenantId, String deliverId);
|
||||||
|
|
||||||
|
List<String> getStoreIdsByDeliverId(String tenantId, String deliverId,boolean isBatch);
|
||||||
|
|
||||||
|
Integer saveStoreRelations(String tenantId, List<Deliver> list);
|
||||||
|
|
||||||
|
Integer deleteRelations(String tenantId, Criteria criteria);
|
||||||
|
|
||||||
|
Integer deleteRelations(String tenantId, Criteria criteria,boolean isBatch);
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
import com.jwsaas.entity.food.DfsFile;
|
||||||
|
|
||||||
|
public interface DfsFileDao extends BaseDao<DfsFile, String> {
|
||||||
|
|
||||||
|
Integer updateUseCount(String tenantId, String userName, List<String[]> list);
|
||||||
|
|
||||||
|
Integer updateDeleteCount(String tenantId, String userName, List<String[]> list);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.jwsaas.condition.Criteria;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
import com.jwsaas.entity.food.DispatchSettlePlan;
|
||||||
|
|
||||||
|
public interface DispatchSettlePlanDao extends BaseDao<DispatchSettlePlan, String> {
|
||||||
|
|
||||||
|
List<DispatchSettlePlan> getListByStoreId(String tenantId, String storeId, Criteria criteria);
|
||||||
|
|
||||||
|
List<DispatchSettlePlan> getListByStoreId(String tenantId, String storeId, Criteria criteria, Boolean isBatch);
|
||||||
|
|
||||||
|
List<String> getAllStoreId(String tenantId);
|
||||||
|
|
||||||
|
Integer saveStoreRelation(String tenantId, List<DispatchSettlePlan> plans);
|
||||||
|
|
||||||
|
List<String> getStoreIdByPlanId(String tenantId, String planId);
|
||||||
|
|
||||||
|
Integer deleteStoreRelationByPlanId(String tenantId, String id);
|
||||||
|
Integer deleteStoreRelationByPlanId(String tenantId, String id, boolean isBatch);
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.DispatchSettlePlanPayMode;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface DispatchSettlePlanPayModeDao extends BaseDao<DispatchSettlePlanPayMode, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.condition.Criteria;
|
||||||
|
import com.jwsaas.entity.food.DispatchTicketDetail;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
import com.jwsaas.mybatis.domain.PageBounds;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface DispatchTicketDetailDao extends BaseDao<DispatchTicketDetail, String> {
|
||||||
|
|
||||||
|
List<DispatchTicketDetail> getListBydispatchSummary(String tenantId, Criteria criteria);
|
||||||
|
|
||||||
|
List<DispatchTicketDetail> getPagerBydispatchSummary(String tenantId, Criteria criteria, PageBounds pageBounds);
|
||||||
|
|
||||||
|
List<DispatchTicketDetail> getPagerWithTypeIdBydispatchSummary(String tenantId, Criteria criteria, PageBounds pageBounds);
|
||||||
|
|
||||||
|
List<DispatchTicketDetail> getListWithTypeIdBydispatchSummary(String tenantId, Criteria criteria);
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.DispatchTicketLog;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface DispatchTicketLogDao extends BaseDao<DispatchTicketLog, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.DispatchpriceTicket;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface DispatchpriceTicketDao extends BaseDao<DispatchpriceTicket, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.DispatchpriceTicketMaterial;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface DispatchpriceTicketMaterialDao extends BaseDao<DispatchpriceTicketMaterial, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.DispatchpriceTicketStore;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface DispatchpriceTicketStoreDao extends BaseDao<DispatchpriceTicketStore, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.condition.Criteria;
|
||||||
|
import com.jwsaas.entity.food.ElemeCategoryFood;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
import com.jwsaas.mybatis.domain.PageBounds;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface ElemeCategoryFoodDao extends BaseDao<ElemeCategoryFood, String> {
|
||||||
|
|
||||||
|
List<ElemeCategoryFood> getPagerExtend(String tenantId, Criteria criteria, PageBounds pageBounds);
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.ElemeFoodCategory;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface ElemeFoodCategoryDao extends BaseDao<ElemeFoodCategory, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.condition.Criteria;
|
||||||
|
import com.jwsaas.entity.food.ElemeOrderDetail;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface ElemeOrderDetailDao extends BaseDao<ElemeOrderDetail, String> {
|
||||||
|
|
||||||
|
List<ElemeOrderDetail> getListReportDataSummary(String tenantId, Criteria criteria);
|
||||||
|
List<ElemeOrderDetail> getListReportDataSummary(String tenantId, Criteria criteria,boolean isBatch);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.ElemeOrderDetailGroup;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface ElemeOrderDetailGroupDao extends BaseDao<ElemeOrderDetailGroup, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.ErpPosSet;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface ErpPosSetDao extends BaseDao<ErpPosSet, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.FeeItem;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface FeeItemDao extends BaseDao<FeeItem, String> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,36 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.jwsaas.condition.Criteria;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
import com.jwsaas.entity.food.MakeDetail;
|
||||||
|
import com.jwsaas.mybatis.domain.PageBounds;
|
||||||
|
|
||||||
|
public interface MakeDetailDao extends BaseDao<MakeDetail, String> {
|
||||||
|
|
||||||
|
String selectMaxValue(String tenantId, String property);
|
||||||
|
|
||||||
|
List<MakeDetail> getListByProductId(String tenantId, String productId, Criteria criteria);
|
||||||
|
|
||||||
|
Integer deleteRelationProductMake(String tenantId, Criteria criteria);
|
||||||
|
|
||||||
|
Integer deleteRelationProductMake(String tenantId, Criteria criteria, Boolean isBatch);
|
||||||
|
|
||||||
|
Integer saveRelationProductMake(String tenantId, String productId, String makeDetailId);
|
||||||
|
|
||||||
|
Integer deleteRelationStoreMake(String tenantId, Criteria criteria);
|
||||||
|
|
||||||
|
Integer deleteRelationStoreMake(String tenantId, Criteria criteria, Boolean isBatch);
|
||||||
|
|
||||||
|
Integer saveRelationStoreMake(String tenantId, String storeId, String makeId, Double addPrice);
|
||||||
|
|
||||||
|
List<MakeDetail> getListByStoreId(String tenantId, String storeId, Criteria criteria);
|
||||||
|
|
||||||
|
List<MakeDetail> getPagerByStoreId(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds);
|
||||||
|
|
||||||
|
List<Map<String, Object>> getPager4Private(String tenantId, String storeId, Criteria criteria, PageBounds pageBounds);
|
||||||
|
|
||||||
|
String selectMaxValueBatch(String tenantId, String property);
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.MakeType;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface MakeTypeDao extends BaseDao<MakeType, String> {
|
||||||
|
|
||||||
|
String selectMaxValue(String tenantId, String property);
|
||||||
|
|
||||||
|
String selectMaxValueBatch(String tenantId, String property);
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package com.jwsaas.dao.food;
|
||||||
|
|
||||||
|
import com.jwsaas.entity.food.MeituanFoodCategory;
|
||||||
|
import com.jwsaas.dao.BaseDao;
|
||||||
|
|
||||||
|
public interface MeituanFoodCategoryDao extends BaseDao<MeituanFoodCategory, String> {
|
||||||
|
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue