提交 fafabd5d authored 作者: zhengfg's avatar zhengfg

this is first commit

上级
流水线 #103 已失败 于阶段
in 9 seconds
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**
!**/src/test/**
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
### VS Code ###
.vscode/
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.util.Properties;
public class MavenWrapperDownloader {
/**
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL =
"https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
/**
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
".mvn/wrapper/maven-wrapper.properties";
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
".mvn/wrapper/maven-wrapper.jar";
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
public static void main(String args[]) {
System.out.println("- Downloader started");
File baseDirectory = new File(args[0]);
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists, read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if (mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
} catch (IOException e) {
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
} finally {
try {
if (mavenWrapperPropertyFileInputStream != null) {
mavenWrapperPropertyFileInputStream.close();
}
} catch (IOException e) {
// Ignore ...
}
}
}
System.out.println("- Downloading from: : " + url);
File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
if (!outputFile.getParentFile().exists()) {
if (!outputFile.getParentFile().mkdirs()) {
System.out.println(
"- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
}
}
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
try {
downloadFileFromURL(url, outputFile);
System.out.println("Done");
System.exit(0);
} catch (Throwable e) {
System.out.println("- Error downloading");
e.printStackTrace();
System.exit(1);
}
}
private static void downloadFileFromURL(String urlString, File destination) throws Exception {
URL website = new URL(urlString);
ReadableByteChannel rbc;
rbc = Channels.newChannel(website.openStream());
FileOutputStream fos = new FileOutputStream(destination);
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
fos.close();
rbc.close();
}
}
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
#!/bin/sh
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Maven2 Start Up Batch script
#
# Required ENV vars:
# ------------------
# JAVA_HOME - location of a JDK home dir
#
# Optional ENV vars
# -----------------
# M2_HOME - location of maven2's installed home dir
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
# e.g. to debug Maven itself, use
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
# ----------------------------------------------------------------------------
if [ -z "$MAVEN_SKIP_RC" ] ; then
if [ -f /etc/mavenrc ] ; then
. /etc/mavenrc
fi
if [ -f "$HOME/.mavenrc" ] ; then
. "$HOME/.mavenrc"
fi
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
mingw=false
case "`uname`" in
CYGWIN*) cygwin=true ;;
MINGW*) mingw=true;;
Darwin*) darwin=true
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
if [ -z "$JAVA_HOME" ]; then
if [ -x "/usr/libexec/java_home" ]; then
export JAVA_HOME="`/usr/libexec/java_home`"
else
export JAVA_HOME="/Library/Java/Home"
fi
fi
;;
esac
if [ -z "$JAVA_HOME" ] ; then
if [ -r /etc/gentoo-release ] ; then
JAVA_HOME=`java-config --jre-home`
fi
fi
if [ -z "$M2_HOME" ] ; then
## resolve links - $0 may be a link to maven's home
PRG="$0"
# need this for relative symlinks
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG="`dirname "$PRG"`/$link"
fi
done
saveddir=`pwd`
M2_HOME=`dirname "$PRG"`/..
# make it fully qualified
M2_HOME=`cd "$M2_HOME" && pwd`
cd "$saveddir"
# echo Using m2 at $M2_HOME
fi
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --unix "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
# For Mingw, ensure paths are in UNIX format before anything is touched
if $mingw ; then
[ -n "$M2_HOME" ] &&
M2_HOME="`(cd "$M2_HOME"; pwd)`"
[ -n "$JAVA_HOME" ] &&
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
# TODO classpath?
fi
if [ -z "$JAVA_HOME" ]; then
javaExecutable="`which javac`"
if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
# readlink(1) is not available as standard on Solaris 10.
readLink=`which readlink`
if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
if $darwin ; then
javaHome="`dirname \"$javaExecutable\"`"
javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
else
javaExecutable="`readlink -f \"$javaExecutable\"`"
fi
javaHome="`dirname \"$javaExecutable\"`"
javaHome=`expr "$javaHome" : '\(.*\)/bin'`
JAVA_HOME="$javaHome"
export JAVA_HOME
fi
fi
fi
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
else
JAVACMD="`which java`"
fi
fi
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly." >&2
echo " We cannot execute $JAVACMD" >&2
exit 1
fi
if [ -z "$JAVA_HOME" ] ; then
echo "Warning: JAVA_HOME environment variable is not set."
fi
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
# traverses directory structure from process work directory to filesystem root
# first directory with .mvn subdirectory is considered project base directory
find_maven_basedir() {
if [ -z "$1" ]
then
echo "Path not specified to find_maven_basedir"
return 1
fi
basedir="$1"
wdir="$1"
while [ "$wdir" != '/' ] ; do
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
fi
# workaround for JBEAP-8937 (on Solaris 10/Sparc)
if [ -d "${wdir}" ]; then
wdir=`cd "$wdir/.."; pwd`
fi
# end of workaround
done
echo "${basedir}"
}
# concatenates all lines of a file
concat_lines() {
if [ -f "$1" ]; then
echo "$(tr -s '\n' ' ' < "$1")"
fi
}
BASE_DIR=`find_maven_basedir "$(pwd)"`
if [ -z "$BASE_DIR" ]; then
exit 1;
fi
##########################################################################################
# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
# This allows using the maven wrapper in projects that prohibit checking in binary data.
##########################################################################################
if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found .mvn/wrapper/maven-wrapper.jar"
fi
else
if [ "$MVNW_VERBOSE" = true ]; then
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
fi
jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
while IFS="=" read key value; do
case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
esac
done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
if [ "$MVNW_VERBOSE" = true ]; then
echo "Downloading from: $jarUrl"
fi
wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
if command -v wget > /dev/null; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found wget ... using wget"
fi
wget "$jarUrl" -O "$wrapperJarPath"
elif command -v curl > /dev/null; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found curl ... using curl"
fi
curl -o "$wrapperJarPath" "$jarUrl"
else
if [ "$MVNW_VERBOSE" = true ]; then
echo "Falling back to using Java to download"
fi
javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
if [ -e "$javaClass" ]; then
if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
if [ "$MVNW_VERBOSE" = true ]; then
echo " - Compiling MavenWrapperDownloader.java ..."
fi
# Compiling the Java class
("$JAVA_HOME/bin/javac" "$javaClass")
fi
if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
# Running the downloader
if [ "$MVNW_VERBOSE" = true ]; then
echo " - Running MavenWrapperDownloader.java ..."
fi
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
fi
fi
fi
fi
##########################################################################################
# End of extension
##########################################################################################
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
if [ "$MVNW_VERBOSE" = true ]; then
echo $MAVEN_PROJECTBASEDIR
fi
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --path --windows "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
[ -n "$MAVEN_PROJECTBASEDIR" ] &&
MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
fi
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
exec "$JAVACMD" \
$MAVEN_OPTS \
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
"-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM
@REM https://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied. See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
@REM Maven2 Start Up Batch script
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM M2_HOME - location of maven2's installed home dir
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
@REM ----------------------------------------------------------------------------
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM set title of command window
title %0
@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
@REM set %HOME% to equivalent of $HOME
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
:skipRcPre
@setlocal
set ERROR_CODE=0
@REM To isolate internal variables from possible post scripts, we use another setlocal
@setlocal
@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome
echo.
echo Error: JAVA_HOME not found in your environment. >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto init
echo.
echo Error: JAVA_HOME is set to an invalid directory. >&2
echo JAVA_HOME = "%JAVA_HOME%" >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
@REM ==== END VALIDATION ====
:init
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
@REM Fallback to current working directory if not found.
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
set EXEC_DIR=%CD%
set WDIR=%EXEC_DIR%
:findBaseDir
IF EXIST "%WDIR%"\.mvn goto baseDirFound
cd ..
IF "%WDIR%"=="%CD%" goto baseDirNotFound
set WDIR=%CD%
goto findBaseDir
:baseDirFound
set MAVEN_PROJECTBASEDIR=%WDIR%
cd "%EXEC_DIR%"
goto endDetectBaseDir
:baseDirNotFound
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
cd "%EXEC_DIR%"
:endDetectBaseDir
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
@setlocal EnableExtensions EnableDelayedExpansion
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
:endReadAdditionalConfig
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO (
IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
)
@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
if exist %WRAPPER_JAR% (
echo Found %WRAPPER_JAR%
) else (
echo Couldn't find %WRAPPER_JAR%, downloading it ...
echo Downloading from: %DOWNLOAD_URL%
powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"
echo Finished downloading %WRAPPER_JAR%
)
@REM End of extension
%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
if ERRORLEVEL 1 goto error
goto end
:error
set ERROR_CODE=1
:end
@endlocal & set ERROR_CODE=%ERROR_CODE%
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
@REM check for post script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
:skipRcPost
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%" == "on" pause
if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
exit /B %ERROR_CODE%
<?xml version="1.0" encoding="UTF-8"?>
<project 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/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.diaoyun</groupId>
<artifactId>zion</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>zion</name>
<description>逐渐把项目完善</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<!--springframework.boot-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<!-- 移除嵌入式tomcat插件 -->
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!--springframework.boot-->
<!--部署tomcat所需-->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
<!--部署tomcat所需-->
<!-- mysql驱动 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<!-- mysql驱动 -->
<!--mybatis-spring-->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.1</version>
</dependency>
<!--mybatis-spring-->
<!-- druid数据源驱动 -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.18</version>
</dependency>
<!--日期时间工具-->
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.10.3</version>
</dependency>
<!--swagger2-->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.8.0</version>
</dependency>
<!--swagger2-->
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.8</version>
</dependency>
<!--apache.commons-->
<!-- https://mvnrepository.com/artifact/net.sf.json-lib/json-lib -->
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15</classifier>
</dependency>
<!--net.sf.json-lib-->
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.2</version>
</dependency>
<!--apache httpclient-->
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
package com.diaoyun.zion;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
@SpringBootApplication
public class ZionApplication extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
// 注意这里要指向原先用main方法执行的Application启动类
return builder.sources(ZionApplication.class);
}
public static void main(String[] args) {
SpringApplication.run(ZionApplication.class, args);
}
}
package com.diaoyun.zion.chinafrica.controller;
import com.alibaba.druid.support.json.JSONUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 提供给第三方api
*
* @author G
*
*/
@Api(value = "ThirdPartyController|提供给第三方api")
@RestController
@RequestMapping("/chinafrica")
public class ThirdPartyController {
private static Logger logger= LoggerFactory.getLogger(ThirdPartyController.class);
/**
*获取某段时间的下单数据
*/
@ApiOperation(value = "获取某段时间的下单数据")
@GetMapping(value ="/order")
public String getOrderList(@RequestParam("beginTime")String beginTime,@RequestParam("endTime")String endTime) {
List<Map<String,Object>> returnList=new ArrayList<>();
Map<String,Object> map=new HashMap<>();
map.put("orderId","orderId8848");
map.put("userId","userId2019");
map.put("dealTime","订单成交时间时间戳1564558584");
returnList.add(map);
return JSONUtils.toJSONString(returnList);
}
/**
*获取某段时间已发货订单数据
*/
@ApiOperation(value = "获取某段时间已发货订单数据")
@GetMapping(value ="/delivery")
public String getDeliveryList(@RequestParam("beginTime")String beginTime,@RequestParam("endTime")String endTime) {
List<Map<String,Object>> returnList=new ArrayList<>();
Map<String,Object> map=new HashMap<>();
map.put("orderId","orderId8848");
map.put("userId","userId2019");
map.put("deliveryAddress","收货人地址");
map.put("deliveryTime","发货时间戳1564558584");
map.put("itemType","货物类别Id");
map.put("expressId","快递单号");
returnList.add(map);
returnList.add(map);
return JSONUtils.toJSONString(returnList);
}
}
package com.diaoyun.zion.master.config;
import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import javax.sql.DataSource;
@Configuration
@MapperScan(basePackages = MysqlDatasourceConfig.PACKAGE, sqlSessionFactoryRef = "mysqlSqlSessionFactory")
public class MysqlDatasourceConfig {
// mysqldao扫描路径
static final String PACKAGE = "com.diaoyun.zion.*.dao";
// mybatis 配置文件扫描路径
static final String CONFIG_LOCATION = "classpath:mybatis/mybatis-config.xml";
// mybatis mapper扫描路径
static final String MAPPER_LOCATION = "classpath:mapper/*.xml";
@Primary
@Bean(name = "mysqldatasource")
@ConfigurationProperties("spring.datasource.druid.mysql")
public DataSource mysqlDataSource() {
return DruidDataSourceBuilder.create().build();
}
@Bean(name = "mysqlTransactionManager")
@Primary
public DataSourceTransactionManager mysqlTransactionManager() {
return new DataSourceTransactionManager(mysqlDataSource());
}
@Bean(name = "mysqlSqlSessionFactory")
@Primary
public SqlSessionFactory mysqlSqlSessionFactory(@Qualifier("mysqldatasource") DataSource dataSource)
throws Exception {
final SqlSessionFactoryBean sessionFactory = new SqlSessionFactoryBean();
sessionFactory.setDataSource(dataSource);
//设置mybatis 配置文件路径
sessionFactory.setConfigLocation(new PathMatchingResourcePatternResolver().getResource(MysqlDatasourceConfig.CONFIG_LOCATION));
//如果不使用xml的方式配置mapper,则可以省去下面这行mapper location的配置。
sessionFactory.setMapperLocations(
new PathMatchingResourcePatternResolver().getResources(MysqlDatasourceConfig.MAPPER_LOCATION));
return sessionFactory.getObject();
}
}
package com.diaoyun.zion.master.config;
import io.swagger.annotations.ApiOperation;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@Configuration
@EnableSwagger2
public class SwaggerConfig {
@Bean
public Docket swaggerSpringMvcPlugin() {
return new Docket(DocumentationType.SWAGGER_2).select().apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)).build();
}
}
package com.diaoyun.zion.master.dao;
import java.util.List;
import java.util.Map;
public interface TbCfUserDao {
List<Map<String,Object>> queryObject();
}
package com.diaoyun.zion.master.util;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
@Component
public class SpringContextUtil implements ApplicationContextAware {
private static ApplicationContext applicationContext; // Spring应用上下文环境
@Override
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException {
SpringContextUtil.applicationContext = applicationContext;
}
public static ApplicationContext getApplicationContext() {
return applicationContext;
}
public static Object getBean(String name) throws BeansException {
return applicationContext.getBean(name);
}
public static Object getBean(String name, Class requiredType)
throws BeansException {
return applicationContext.getBean(name, requiredType);
}
public static boolean containsBean(String name) {
return applicationContext.containsBean(name);
}
public static boolean isSingleton(String name) throws NoSuchBeanDefinitionException {
return applicationContext.isSingleton(name);
}
public static Class getType(String name) throws NoSuchBeanDefinitionException {
return applicationContext.getType(name);
}
public static String[] getAliases(String name) throws NoSuchBeanDefinitionException {
return applicationContext.getAliases(name);
}
}
spring:
datasource:
druid:
# 数据库访问配置, 使用druid数据源
# 数据源1 mysql
mysql:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
# url: jdbc:mysql://localhost:3306/zion?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8
# username: root
# password: 1234
#测试环境
url: jdbc:mysql://47.106.242.175:3306/zion?useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false
username: root
password: diaoyun666
# 连接池配置
initial-size: 5
min-idle: 5
max-active: 20
# 连接等待超时时间
max-wait: 30000
# 配置检测可以关闭的空闲连接间隔时间
time-between-eviction-runs-millis: 60000
# 配置连接在池中的最小生存时间
min-evictable-idle-time-millis: 300000
validation-query: select '1' from dual
test-while-idle: true
test-on-borrow: false
test-on-return: false
# 打开PSCache,并且指定每个连接上PSCache的大小
pool-prepared-statements: true
max-open-prepared-statements: 20
max-pool-prepared-statement-per-connection-size: 20
# 配置监控统计拦截的filters, 去掉后监控界面sql无法统计, 'wall'用于防火墙
filters: stat,wall
# Spring监控AOP切入点,如x.y.z.service.*,配置多个英文逗号分隔
aop-patterns: com.springboot.servie.*
# WebStatFilter配置
web-stat-filter:
enabled: true
# 添加过滤规则
url-pattern: /*
# 忽略过滤的格式
exclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*'
# StatViewServlet配置
stat-view-servlet:
enabled: true
# 访问路径为/druid时,跳转到StatViewServlet
url-pattern: /druid/*
# 是否能够重置数据
reset-enable: false
# 需要账号密码才能访问控制台
login-username: root
login-password: 1234
# IP白名单
# allow: 127.0.0.1
# IP黑名单(共同存在时,deny优先于allow)
# deny: 192.168.1.218
# 配置StatFilter
filter:
stat:
log-slow-sql: true
#https配置
# Define a custom port instead of the default 8080
#server:
# port: 8443
# ssl:
# key-store-type: PKCS12
# key-store: classpath:keystore/keystore.p12
# key-store-password: diaoyun
# key-alias: tomcat
___ __ __ __________ ____ _____ ________ _ __
/ | / / / / / ____/ __ \/ __ \ /__ / / _/ __ \/ | / /
/ /| | / / / / / /_ / / / / /_/ / / / / // / / / |/ /
/ ___ |/ /___/ /___ / __/ / /_/ / _, _/ / /___/ // /_/ / /| /
/_/ |_/_____/_____/ /_/ \____/_/ |_| /____/___/\____/_/ |_/
\ No newline at end of file
差异被折叠。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.diaoyun.zion.master.dao.TbCfUserDao">
<select id="queryObject" resultType="java.util.Map">
select *
from tb_cf_user
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<!-- 引入外部资源文件 -->
<!--<properties resource="jdbc.properties"></properties>-->
<settings>
<!-- 设置驼峰匹配 -->
<setting name="mapUnderscoreToCamelCase" value="true"/>
<!-- 控制台输出sql语句 logback已打印-->
<!--<setting name="logImpl" value="STDOUT_LOGGING" />-->
</settings>
<!-- 设置包扫描(别名) -->
<!--<typeAliases>
<package name="cn.itcast.pojo"/>
</typeAliases>-->
<!-- 配置环境:可以配置多个环境,default:配置某一个环境的唯一标识,表示默认使用哪个环境 -->
<!--<environments default="development">
<environment id="development">
<transactionManager type="JDBC"/>
<dataSource type="POOLED">
&lt;!&ndash; 配置连接信息 &ndash;&gt;
<property name="driver" value="${jdbc.driverClass}"/>
<property name="url" value="${jdbc.url}"/>
<property name="username" value="${jdbc.username}"/>
<property name="password" value="${jdbc.password}"/>
</dataSource>
</environment>
</environments>-->
<!-- 配置映射文件:用来配置sql语句和结果集类型等 -->
<!--<mappers>
<mapper resource="UserMapper.xml"/>
</mappers>-->
</configuration>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div class="sku-wrap"><div class="header"><div class="img-wrap"><img src="//gw.alicdn.com/bao/uploaded/i1/3369275226/O1CN01oNcu8Y1oTYLAqN3Ba_!!3369275226.jpg_200x200Q50s50.jpg" class="j-summary-img" aria-label="选中的商品图"></div><div class="main"><div class="price-wrap"><span class="price"> ¥139 </span> </div> <div class="stock">库存 4147件</div> <div class="sku-info"> 已选择: <span>6分(30米)送接头</span> </div></div><a class="sku-close" aria-label="关闭"></a></div><div class="body"><div class="body-item"><div class="pre-mods-wrap"></div><div class="address-wrap"></div><div class="buy-type-wrap"></div><div class="sku-type-pre-wrap"></div><ul class="sku-list-wrap">
<li>
<h2 id="prop_title_0">颜色分类</h2>
<div class="items" role="radiogroup" aria-labelledby="prop_title_0">
<a role="radio" href="javascript:void(0)" data-value="1627207:3232483" data-image="//gw.alicdn.com/bao/uploaded/i3/3369275226/O1CN01w13vrC1oTYLC8jaOo_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i3/3369275226/O1CN01w13vrC1oTYLC8jaOo_!!3369275226.jpg_80x80.jpg"><span>4分(5米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:3232484" data-image="//gw.alicdn.com/bao/uploaded/i3/3369275226/O1CN01KntdVp1oTYLA4SXwZ_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i3/3369275226/O1CN01KntdVp1oTYLA4SXwZ_!!3369275226.jpg_80x80.jpg"><span>4分(10米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:3232481" data-image="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01KsRwY71oTYLBL3NPw_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01KsRwY71oTYLBL3NPw_!!3369275226.jpg_80x80.jpg"><span>4分(15米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:90554" data-image="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01sf5re51oTYLC8kaqv_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01sf5re51oTYLC8kaqv_!!3369275226.jpg_80x80.jpg"><span>4分(20米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:28332" data-image="//gw.alicdn.com/bao/uploaded/i1/3369275226/O1CN01GcP1Ub1oTYLA4Uctn_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i1/3369275226/O1CN01GcP1Ub1oTYLA4Uctn_!!3369275226.jpg_80x80.jpg"><span>4分(30米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:30156" data-image="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01kbfzTP1oTYLAqLVMZ_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01kbfzTP1oTYLAqLVMZ_!!3369275226.jpg_80x80.jpg"><span>4分(40米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:60092" data-image="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01tf5D9x1oTYL9gatzK_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01tf5D9x1oTYL9gatzK_!!3369275226.jpg_80x80.jpg"><span>4分(50米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:3232482" data-image="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN011aQOFf1oTYLC8nwqu_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN011aQOFf1oTYLC8nwqu_!!3369275226.jpg_80x80.jpg"><span>4分(100米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:3232478" data-image="//gw.alicdn.com/bao/uploaded/i3/3369275226/O1CN016cOz6Q1oTYLAqNeUk_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i3/3369275226/O1CN016cOz6Q1oTYLAqNeUk_!!3369275226.jpg_80x80.jpg"><span>6分(5米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:3232479" data-image="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01cXRRVW1oTYLDnr0l7_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01cXRRVW1oTYLDnr0l7_!!3369275226.jpg_80x80.jpg"><span>6分(10米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:28340" data-image="//gw.alicdn.com/bao/uploaded/i1/3369275226/O1CN01oMIVNv1oTYL4XuyjP_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i1/3369275226/O1CN01oMIVNv1oTYL4XuyjP_!!3369275226.jpg_80x80.jpg"><span>6分(15米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:28320" data-image="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01WSfJDx1oTYL8wwZs3_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01WSfJDx1oTYL8wwZs3_!!3369275226.jpg_80x80.jpg"><span>6分(20米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:3232480" data-image="//gw.alicdn.com/bao/uploaded/i1/3369275226/O1CN01oNcu8Y1oTYLAqN3Ba_!!3369275226.jpg" class="checked" aria-checked="true" data-spm-anchor-id="a222m.7628550.0.0"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i1/3369275226/O1CN01oNcu8Y1oTYLAqN3Ba_!!3369275226.jpg_80x80.jpg"><span>6分(30米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:80882" data-image="//gw.alicdn.com/bao/uploaded/i4/3369275226/O1CN01mmjhrq1oTYL9gevcM_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i4/3369275226/O1CN01mmjhrq1oTYL9gevcM_!!3369275226.jpg_80x80.jpg"><span>6分(40米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:28329" data-image="//gw.alicdn.com/bao/uploaded/i4/3369275226/O1CN01domgur1oTYLDFR4KM_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i4/3369275226/O1CN01domgur1oTYLDFR4KM_!!3369275226.jpg_80x80.jpg"><span>6分(50米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:28326" data-image="//gw.alicdn.com/bao/uploaded/i4/3369275226/O1CN01KPtSuR1oTYLDntpYq_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i4/3369275226/O1CN01KPtSuR1oTYLDntpYq_!!3369275226.jpg_80x80.jpg"><span>6分(100米)送接头</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:28335" data-image="//gw.alicdn.com/bao/uploaded/i3/3369275226/O1CN01VBojzo1oTYJW6ksev_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i3/3369275226/O1CN01VBojzo1oTYJW6ksev_!!3369275226.jpg_80x80.jpg"><span>水管车+10米4分管套装(送2米管)</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:130164" data-image="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01CyS92x1oTYJWipWuL_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01CyS92x1oTYJWipWuL_!!3369275226.jpg_80x80.jpg"><span>水管车+15米4分管套装(送2米管)</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:28338" data-image="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01RLzr9v1oTYJVpesyw_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN01RLzr9v1oTYJVpesyw_!!3369275226.jpg_80x80.jpg"><span>水管车+20米4分管套装(送2米管)</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:107121" data-image="//gw.alicdn.com/bao/uploaded/i4/3369275226/O1CN01InLN4B1oTYJVpe9Gz_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i4/3369275226/O1CN01InLN4B1oTYJVpe9Gz_!!3369275226.jpg_80x80.jpg"><span>水管车+30米4分管套装(送2米管)</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:28327" data-image="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN011oTYJPfEHKkpSH7_!!3369275226.jpg" class="" aria-checked="false"><img class="prop-img" src="//gw.alicdn.com/bao/uploaded/i2/3369275226/O1CN011oTYJPfEHKkpSH7_!!3369275226.jpg_80x80.jpg"><span>水管车+40米4分管套装(送2米管)</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:28324" class="" aria-checked="false"><span>(4分内径12mm) (6分内径18mm)</span></a>
</div>
</li>
</ul><div class="sku-type-wrap"></div><ul class="bundle-sku-wrap"></ul><div class="mods-wrap"></div><div class="pickup-wrap"><section id="s-pickup"> </section></div><div class="bundle-wrap"></div><div class="services-wrap"></div><div class="number-wrap"><div class="number-line"><label for="number">购买数量</label><span class="J_limitTxt limit-txt"></span><div class="number"><button class="decrease disabled">-</button> <input id="number" type="number" value="1"> <button class="increase">+</button></div></div></div><div class="installment-wrap"></div></div></div><div class="footer trade">
<a class="cart " role="button"><p>加入购物车</p></a>
<a class="info" role="button"></a>
<a class="buy " role="button"><p>立即购买</p></a>
</div></div>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div class="tb-sku-container ">
<div class="sku-pro">
<div>
<div class="sku-img"><p><img
src="//img.alicdn.com/imgextra/i1/1777778777/O1CN01WqHblq2EhumihckIq_!!1777778777.jpg_120x120q50s150.jpg">
</p></div>
<div class="sku-pro-info">
<div><h3 class="sku-title">空调专用滴水管落水管排水管出水管加长半自动洗衣机进水管可延长</h3>
<p class="h">¥ 10.5</p>
<p class="quantity">库存:466</p>
<p class="sku-txt"><span class="c-sku">已选:空调落水管4米【送卡箍】 </span><span class="unc-sku"></span></p>
</div>
</div>
<div class="sku-closed tb-sku-iconfont tb-sku-icon-close-circle"></div>
</div>
</div>
<div class="sku-info">
<div><h2>颜色分类</h2>
<ul>
<li class="normal">空调落水管1米【送卡箍】</li>
<li class="normal">空调落水管2米【送卡箍】</li>
<li class="normal">空调落水管3米【送卡箍】</li>
<li class="sel">空调落水管4米【送卡箍】</li>
<li class="normal">空调落水管6米【送卡箍】</li>
<li class="normal">空调落水管8米【送卡箍】</li>
<li class="normal">空调落水管10米【送卡箍】</li>
<li class="normal">空调落水管7米【送卡箍】</li>
<li class="normal">空调落水管9米【送卡箍】</li>
<li class="normal">空调落水管5米【送卡箍】</li>
<li class="normal">空调落水管1米+包扎带【送卡箍】</li>
<li class="normal">空调落水管2米+包扎带【送卡箍】</li>
<li class="normal">空调落水管3米+包扎带【送卡箍】</li>
<li class="normal">空调落水管4米+包扎带【送卡箍】</li>
<li class="normal">空调落水管5米+包扎带【送卡箍】</li>
<li class="normal">空调落水管6米+包扎带【送卡箍】</li>
<li class="normal">空调落水管7米+包扎带【送卡箍】</li>
<li class="normal">空调落水管8米+包扎带【送卡箍】</li>
<li class="normal">空调落水管9米+包扎带【送卡箍】</li>
<li class="normal">空调落水管10米包扎带【送卡箍】</li>
<li class="normal">空调落水管12米【送卡箍】</li>
<li class="normal">空调落水管15米【送卡箍】</li>
<li class="normal">空调落水管12米包扎带【送卡箍】</li>
<li class="normal">空调落水管1.5米【送卡箍】</li>
</ul>
</div>
<div class="quantity-info">
<div class="sku-quantity"><h2>购买数量 <span></span></h2>
<p class="btn-minus tb-sku-iconfont tb-sku-icon-minus off"><a class="btn minus" min=""></a></p>
<p class="btn-input"><input type="tel" value="1"></p>
<p class="btn-plus tb-sku-iconfont tb-sku-icon-plus"><a class="btn plus" max=""></a></p></div>
</div>
</div>
<div>
<div class="sku-btns">
<div class="sku-btn addcart">加入购物车</div>
<div class="sku-btn gobuy">立即购买</div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div class="tb-sku-container ">
<div class="sku-pro">
<div>
<div class="sku-img"><p><img
src="http://img.alicdn.com/imgextra/i1/898065373/O1CN01yhYNNp1pYsYRWnnTv_!!898065373.jpg_120x120q50s150.jpg">
</p></div>
<div class="sku-pro-info">
<div><h3 class="sku-title">油纸伞古典江南跳舞蹈伞道具伞旗袍走秀中国风装饰伞汉服女古装伞</h3>
<p class="h">¥ 26.1</p>
<p class="quantity">库存:975</p>
<p class="sku-txt"><span class="c-sku">已选:青花水纹 半穿 84cm </span><span class="unc-sku"></span></p>
</div>
</div>
<div class="sku-closed tb-sku-iconfont tb-sku-icon-close-circle"></div>
</div>
</div>
<div class="sku-info">
<div><h2>颜色分类</h2>
<ul>
<li class="normal">乳白色 1号青花牡丹</li>
<li class="normal">米白色 2号喜上枝头</li>
<li class="normal">白 3号十里春风</li>
<li class="normal">白色 4号中国风</li>
<li class="normal">银色 5号莺啼燕语</li>
<li class="normal">浅灰色 6号青花瓷</li>
<li class="normal">灰色 7号梦江南</li>
<li class="normal">深灰色 8号群荷争歌</li>
<li class="normal">桔红色 9号梅竹争艳</li>
<li class="normal">玫红色 10号国色牡丹</li>
<li class="normal">西瓜红 11号牡丹戏鱼</li>
<li class="normal">红色 12号远山近梅</li>
<li class="normal">酒红色 13号连理同枝</li>
<li class="normal">卡其色 14号牡丹</li>
<li class="normal">姜黄色 15号寒梅</li>
<li class="normal">明黄色 16号江南水乡</li>
<li class="normal">杏色 17号飞燕红妆</li>
<li class="normal">荧光黄 18号红梅</li>
<li class="normal">香槟色 19号幽舍兰香</li>
<li class="normal">黄色 20号蓝蝶晓梦</li>
<li class="normal">金色 21号丛中蝶舞</li>
<li class="normal">浅黄色 22号国色天香</li>
<li class="normal">桔色 23号花映红</li>
<li class="normal">荧光绿 24号百元红霞</li>
<li class="normal">青色 25号彩蝶花舞</li>
<li class="normal">绿色 26号接天莲叶</li>
<li class="normal">浅绿色 27号御灵</li>
<li class="normal">军绿色 28号比翼鸟</li>
<li class="normal">孔雀蓝 29号春江水暖</li>
<li class="normal">宝蓝色 30号淡云流水</li>
<li class="normal">浅蓝色 31号栀子花开</li>
<li class="normal">湖蓝色 32号落花有意</li>
<li class="normal">藏青色 33号若雪</li>
<li class="normal">蓝色 34号桃花运</li>
<li class="normal">深蓝色 35号玉楼点翠</li>
<li class="normal">浅紫色 36号粉妆玉砌</li>
<li class="normal">紫红色 37号绿荷</li>
<li class="normal">紫罗兰 38号鸟鸣涧</li>
<li class="normal">深紫色 39号桃花朵朵开</li>
<li class="normal">咖啡色 40号十里桃花</li>
<li class="normal">深棕色 41号水墨清荷</li>
<li class="normal">褐色 42号喜归</li>
<li class="normal">巧克力色 43号月夕花朝</li>
<li class="normal">深卡其布色 44号紫荆花</li>
<li class="normal">花色 含羞带露</li>
<li class="normal">艳玫红色 彼岸花</li>
<li class="normal">蓝 春色满园</li>
<li class="normal">黑 三生三世</li>
<li class="normal">红 桃之夭夭</li>
<li class="normal">水墨荷花</li>
<li class="sel">青花水纹</li>
<li class="normal">腊梅</li>
<li class="normal">花前月下</li>
<li class="normal">花坠枝头</li>
<li class="normal">渺渺飘絮</li>
<li class="normal">宛如红柚</li>
<li class="normal">乡间野清</li>
<li class="normal">枝繁叶茂</li>
<li class="normal">暗香疏影</li>
<li class="normal">红底白梅花</li>
<li class="normal">芙蓉</li>
<li class="normal">蓝面桃花映春</li>
<li class="normal">绿荷</li>
<li class="normal">绿面小桃花</li>
<li class="normal">樱花雨蝶</li>
<li class="normal">花好月圆夜</li>
<li class="normal">鸿运当头黄</li>
<li class="normal">世外桃源</li>
<li class="normal">桃花梦幻</li>
<li class="normal">樱花烂漫</li>
<li class="normal">暖咖啡色 花缘梦静</li>
<li class="normal">天蓝色 冰月花魂</li>
<li class="normal">魅玫红色 银红巧对</li>
<li class="normal">米黄色 春鹊共舞</li>
<li class="normal">粉 粉底花鸟牡丹</li>
<li class="normal">柠檬黄 山水之间</li>
</ul>
</div>
<div><h2>制造工艺</h2>
<ul>
<li class="sel">半穿</li>
</ul>
</div>
<div><h2>伞面尺寸</h2>
<ul>
<li class="sel">84cm</li>
<li class="normal">70cm</li>
</ul>
</div>
<div class="quantity-info">
<div class="sku-quantity"><h2>购买数量 <span></span></h2>
<p class="btn-minus tb-sku-iconfont tb-sku-icon-minus off"><a class="btn minus" min=""></a></p>
<p class="btn-input"><input type="tel" value="1"></p>
<p class="btn-plus tb-sku-iconfont tb-sku-icon-plus"><a class="btn plus" max=""></a></p></div>
</div>
</div>
<div>
<div class="sku-btns">
<div class="sku-btn addcart">加入购物车</div>
<div class="sku-btn gobuy">立即购买</div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div class="sku-wrap">
<div class="header">
<div class="img-wrap"><img
src="//gw.alicdn.com/bao/uploaded/i4/3511175977/O1CN01l2Es0w1u1Vof3erU1_!!3511175977.jpg_200x200Q50s50.jpg"
class="j-summary-img" aria-label="选中的商品图"></div>
<div class="main">
<div class="price-wrap"><span class="price"> ¥168 </span></div>
<div class="stock">库存 499件</div>
<div class="sku-info"> 已选择: <span>白色</span> <span>40</span></div>
</div>
<a class="sku-close" aria-label="关闭"></a></div>
<div class="body">
<div class="body-item">
<div class="pre-mods-wrap"></div>
<div class="address-wrap"></div>
<div class="buy-type-wrap"></div>
<div class="sku-type-pre-wrap"></div>
<ul class="sku-list-wrap">
<li>
<h2 id="prop_title_0">颜色分类</h2>
<div class="items" role="radiogroup" aria-labelledby="prop_title_0">
<a role="radio" href="javascript:void(0)" data-value="1627207:28338"
data-image="//gw.alicdn.com/bao/uploaded/i4/3511175977/O1CN01dIllno1u1Vof3gbpH_!!3511175977.jpg"
class="" aria-checked="false"><img class="prop-img"
src="//gw.alicdn.com/bao/uploaded/i4/3511175977/O1CN01dIllno1u1Vof3gbpH_!!3511175977.jpg_80x80.jpg"><span>蓝色</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:28320"
data-image="//gw.alicdn.com/bao/uploaded/i4/3511175977/O1CN01l2Es0w1u1Vof3erU1_!!3511175977.jpg"
class="checked" aria-checked="true" data-spm-anchor-id="a222m.7628550.0.0"><img
class="prop-img"
src="//gw.alicdn.com/bao/uploaded/i4/3511175977/O1CN01l2Es0w1u1Vof3erU1_!!3511175977.jpg_80x80.jpg"
data-spm-anchor-id="a222m.7628550.0.i1"><span>白色</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:28341"
data-image="//gw.alicdn.com/bao/uploaded/i4/3511175977/O1CN01OTvoUt1u1VofuXuYH_!!3511175977.jpg"
class="" aria-checked="false"><img class="prop-img"
src="//gw.alicdn.com/bao/uploaded/i4/3511175977/O1CN01OTvoUt1u1VofuXuYH_!!3511175977.jpg_80x80.jpg"><span>黑色</span></a>
<a role="radio" href="javascript:void(0)" data-value="1627207:28326"
data-image="//gw.alicdn.com/bao/uploaded/i1/3511175977/O1CN01ufjWsY1u1Voj0Babh_!!3511175977.jpg"
class="" aria-checked="false"><img class="prop-img"
src="//gw.alicdn.com/bao/uploaded/i1/3511175977/O1CN01ufjWsY1u1Voj0Babh_!!3511175977.jpg_80x80.jpg"><span>红色</span></a>
</div>
</li>
<li>
<h2 id="prop_title_1">尺码</h2>
<div class="items" role="radiogroup" aria-labelledby="prop_title_1">
<a role="radio" href="javascript:void(0)" data-value="20549:418624880" class=""
aria-checked="false"><span>39</span></a>
<a role="radio" href="javascript:void(0)" data-value="20549:229418985" class="checked"
aria-checked="true" data-spm-anchor-id="a222m.7628550.0.0"><span
data-spm-anchor-id="a222m.7628550.0.i2">40</span></a>
<a role="radio" href="javascript:void(0)" data-value="20549:407396361" class=""
aria-checked="false"><span>41</span></a>
<a role="radio" href="javascript:void(0)" data-value="20549:473680452" class=""
aria-checked="false"><span>42</span></a>
<a role="radio" href="javascript:void(0)" data-value="20549:225078235" class=""
aria-checked="false"><span>43</span></a>
<a role="radio" href="javascript:void(0)" data-value="20549:64797379" class=""
aria-checked="false"><span>44</span></a>
</div>
</li>
</ul>
<div class="sku-type-wrap"></div>
<ul class="bundle-sku-wrap"></ul>
<div class="mods-wrap"></div>
<div class="pickup-wrap">
<section id="s-pickup"></section>
</div>
<div class="bundle-wrap"></div>
<div class="services-wrap"></div>
<div class="number-wrap">
<div class="number-line"><label for="number">购买数量</label><span class="J_limitTxt limit-txt"></span>
<div class="number">
<button class="decrease disabled">-</button>
<input id="number" type="number" value="1">
<button class="increase">+</button>
</div>
</div>
</div>
<div class="installment-wrap"><h2>花呗分期(可选)</h2>
<div id="J_extractType" class="installmentContent"><label data-key="3" role="button" class=""><span
class="installment-line">分3期(含手续费)</span> <span><em>¥</em>57.28/期</span> </label> <label
data-key="6" role="button" class=""><span class="installment-line">分6期(含手续费)</span>
<span><em>¥</em>29.26/期</span> </label> <label data-key="12" role="button" class=""><span
class="installment-line">分12期(含手续费)</span> <span><em>¥</em>15.05/期</span> </label></div>
</div>
</div>
</div>
<div class="footer trade">
<a class="cart " role="button"><p>加入购物车</p></a>
<a class="info" role="button"></a>
<a class="buy " role="button"><p>立即购买</p></a>
</div>
</div>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div class="group-warp">
<div class="module-wrap" data-module="mods/module-preview/index" id="J_mod0">
<div class="module-preview" data-mod-name="detail-m/mods/module-preview/index">
<section class="mui-slider preview-slider">
<div class="scroller preview-scroller"
style="transition-property: transform; transition-timing-function: cubic-bezier(0, 0, 0.25, 1); transition-duration: 350ms; transform: translate3d(0px, 0px, 0px);">
<a class="item"
style="background-image:url('//img.alicdn.com/imgextra/i1/1137666445/O1CN01qSTwax1xTrAaUBOce_!!0-item_pic.jpg_150x150Q60s150.jpg')"><img
src="//img.alicdn.com/imgextra/i1/1137666445/O1CN01qSTwax1xTrAaUBOce_!!0-item_pic.jpg_1152x1920Q50s50.jpg_.webp"
data-src="//img.alicdn.com/imgextra/i1/1137666445/O1CN01qSTwax1xTrAaUBOce_!!0-item_pic.jpg_1152x1920Q50s50.jpg_.webp"
aria-label="商品主图"></a> <a class="item"><img
src="//img.alicdn.com/imgextra/i4/1137666445/O1CN010fauJP1xTr8qmC6KD_!!0-item_pic.jpg_1152x1920Q50s50.jpg_.webp"
aria-label="商品主图"></a> <a class="item"><img
src="//img.alicdn.com/imgextra/i1/1137666445/O1CN01wsVvRQ1xTr8q4ckIy_!!1137666445.jpg_1152x1920Q50s50.jpg_.webp"
aria-label="商品主图"></a> <a class="item"><img
src="//img.alicdn.com/imgextra/i4/1137666445/O1CN01uSgFDm1xTr8qkBNEC_!!1137666445.jpg_1152x1920Q50s50.jpg_.webp"
aria-label="商品主图"></a> <a class="item"><img
src="//img.alicdn.com/imgextra/i3/1137666445/O1CN015iKrlB1xTr8nbyiVW_!!1137666445.jpg_1152x1920Q50s50.jpg_.webp"
aria-label="商品主图"></a></div>
<div class="nav"><i class="current"><span class="pagination">1/5</span></i> <i><span class="pagination">2/5</span></i>
<i><span class="pagination">3/5</span></i> <i><span class="pagination">4/5</span></i> <i><span
class="pagination">5/5</span></i></div>
</section>
</div>
</div>
<div class="module-wrap" data-module="mods/module-jhs/index" id="J_mod1">
<div class="module-jhs" data-mod-name="detail-m/mods/module-jhs/index"></div>
</div>
<div class="module-wrap" data-module="mods/module-focus/index" id="J_mod2">
<div class="module-focus" data-mod-name="detail-m/mods/module-focus/index"></div>
</div>
<div class="module-wrap" data-module="mods/module-price/index" id="J_mod3">
<div class="module-price" data-mod-name="detail-m/mods/module-price/index">
<div class="real-price"><span class="ui-yen "><i class="price-symbol">¥</i><span
class="price">26</span></span></div>
</div>
</div>
<div class="module-wrap" data-module="mods/module-from/index" id="J_mod4">
<div class="module-from" data-mod-name="detail-m/mods/module-from/index"></div>
</div>
<div class="module-wrap" data-module="mods/module-title/index" data-exp="{&quot;module&quot;:&quot;title&quot;}"
id="J_mod5" data-sub_rn="e39c78ce5bc293cdae1dc169a65adf49">
<div class="module-title" data-mod-name="detail-m/mods/module-title/index">
<div class="share-warp mui-flex">
<div class="main cell">方管桁架舞台桁架广告桁架铝合金热镀锌桁架厂家直销批发钢铁桁架</div>
<span class="share-div mui-flex share-hidden">
<div class="share-bd mui-flex">
<i class="share-icon"></i>
<span>分享</span>
</div>
</span>
</div>
</div>
</div>
<div class="module-wrap" data-module="mods/module-adds/index" id="J_mod6">
<div class="module-adds" data-mod-name="detail-m/mods/module-adds/index"><span class="postage">快递: 0.00</span>
<span class="sales">月销量 0件</span>
<span class="delivery">山东临沂</span></div>
</div>
<div class="module-wrap" data-module="mods/module-atmosphere/index" id="J_mod7">
<div class="module-atmosphere" data-mod-name="detail-m/mods/module-atmosphere/index"></div>
</div>
</div>
</body>
</html>
\ No newline at end of file
package com.diaoyun.zion;
import com.diaoyun.zion.master.dao.TbCfUserDao;
import com.diaoyun.zion.master.util.SpringContextUtil;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import java.util.List;
import java.util.Map;
@RunWith(SpringRunner.class)
@SpringBootTest
public class ZionApplicationTests {
@Test
public void contextLoads() {
TbCfUserDao tbCfUserDao= (TbCfUserDao) SpringContextUtil.getBean("tbCfUserDao");
List<Map<String, Object>> maps = tbCfUserDao.queryObject();
System.out.println(maps);
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论