Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
common-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
计万成
common-api
Commits
a9151131
Commit
a9151131
authored
Sep 07, 2020
by
jwc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
29156796
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
6 deletions
+20
-6
pom.xml
pom.xml
+9
-4
src/main/java/cn/zingfin/CommonApplication.java
src/main/java/cn/zingfin/CommonApplication.java
+2
-1
src/main/resources/application-dev.yml
src/main/resources/application-dev.yml
+9
-0
src/test/java/verification/ShumaiMobileTest.java
src/test/java/verification/ShumaiMobileTest.java
+0
-1
No files found.
pom.xml
View file @
a9151131
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<artifactId>
common-api
</artifactId>
<artifactId>
common-api
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<version>
0.0.1-SNAPSHOT
</version>
<name>
common
</name>
<name>
common
</name>
<description>
项目模版
</description>
<description>
公共服务
</description>
<distributionManagement>
<distributionManagement>
...
@@ -45,12 +45,11 @@
...
@@ -45,12 +45,11 @@
<artifactId>
web-common-spring-boot-starter
</artifactId>
<artifactId>
web-common-spring-boot-starter
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<version>
0.0.1-SNAPSHOT
</version>
</dependency>
</dependency>
<!--web核心依赖-->
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-configuration-processor
</artifactId>
<artifactId>
spring-boot-configuration-processor
</artifactId>
...
@@ -89,12 +88,18 @@
...
@@ -89,12 +88,18 @@
</exclusion>
</exclusion>
</exclusions>
</exclusions>
</dependency>
</dependency>
<!--mysql数据库驱动-->
<dependency>
<dependency>
<groupId>
mysql
</groupId>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<artifactId>
mysql-connector-java
</artifactId>
<scope>
runtime
</scope>
<scope>
runtime
</scope>
</dependency>
</dependency>
<!--mybatis-->
<dependency>
<groupId>
org.mybatis.spring.boot
</groupId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<version>
2.1.0
</version>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<artifactId>
spring-boot-starter-test
</artifactId>
...
...
src/main/java/cn/zingfin/CommonApplication.java
View file @
a9151131
package
cn
.
zingfin
;
package
cn
.
zingfin
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
...
@@ -9,7 +10,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
...
@@ -9,7 +10,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
*/
*/
@SpringBootApplication
@SpringBootApplication
@EnableSwagger2
@EnableSwagger2
//
@MapperScan(basePackages = {"cn.zingfin.common.mapper"})
@MapperScan
(
basePackages
=
{
"cn.zingfin.common.mapper"
})
public
class
CommonApplication
{
public
class
CommonApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
src/main/resources/application-dev.yml
View file @
a9151131
spring
:
datasource
:
url
:
jdbc:mysql://39.170.1.99:3306/agent?characterEncoding=utf-8&useLocalSessionState=true&autoReconnect=true
username
:
agent
password
:
"
qMyWRrnPO@hcPlp@"
driver-class-name
:
com.mysql.jdbc.Driver
zing
:
zing
:
open
:
open
:
api
:
api
:
...
@@ -9,3 +16,5 @@ aliyun:
...
@@ -9,3 +16,5 @@ aliyun:
accessKeyId
:
"
LTAI4GBuqJxv5x1DG64kjJYs"
accessKeyId
:
"
LTAI4GBuqJxv5x1DG64kjJYs"
accessKeySecret
:
"
m9ECgeQ3t9o5YSbnpxUnea7NmizBQV"
accessKeySecret
:
"
m9ECgeQ3t9o5YSbnpxUnea7NmizBQV"
src/test/java/verification/ShumaiMobileTest.java
View file @
a9151131
...
@@ -2,7 +2,6 @@ package verification;
...
@@ -2,7 +2,6 @@ package verification;
import
cn.zingfin.exception.BizException
;
import
cn.zingfin.exception.BizException
;
import
cn.zingfin.sign.DefaultClient
;
import
cn.zingfin.sign.DefaultClient
;
import
cn.zingfin.web.model.VerificationCompanyRequest
;
import
cn.zingfin.web.model.VerificationMobileRequest
;
import
cn.zingfin.web.model.VerificationMobileRequest
;
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment