Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
payment
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
曲欣亮
payment
Commits
077efeec
Commit
077efeec
authored
Aug 06, 2018
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改目录
parent
289081f9
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
76 additions
and
13 deletions
+76
-13
pom.xml
pom.xml
+5
-0
PaymentApplication.java
src/main/java/com/egolm/payment/PaymentApplication.java
+3
-1
AliPayTestController.java
...egolm/payment/alipay/controller/AliPayTestController.java
+28
-0
DataSourceConfig.java
src/main/java/com/egolm/payment/config/DataSourceConfig.java
+1
-1
ExceptionHandler.java
src/main/java/com/egolm/payment/config/ExceptionHandler.java
+1
-1
SwaggerConfig.java
src/main/java/com/egolm/payment/config/SwaggerConfig.java
+3
-3
WebMvcConfig.java
src/main/java/com/egolm/payment/config/WebMvcConfig.java
+1
-1
XException.java
src/main/java/com/egolm/payment/config/XException.java
+1
-1
WXTestController.java
.../com/egolm/payment/wxpay/controller/WXTestController.java
+28
-0
application-dev.properties
src/main/resources/application-dev.properties
+5
-5
No files found.
pom.xml
View file @
077efeec
...
@@ -21,6 +21,11 @@
...
@@ -21,6 +21,11 @@
<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>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-devtools
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<dependency>
<groupId>
mysql
</groupId>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<artifactId>
mysql-connector-java
</artifactId>
...
...
src/main/java/c
n/ossip
/payment/PaymentApplication.java
→
src/main/java/c
om/egolm
/payment/PaymentApplication.java
View file @
077efeec
package
c
n
.
ossip
.
payment
;
package
c
om
.
egolm
.
payment
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cache.annotation.EnableCaching
;
import
org.springframework.cache.annotation.EnableCaching
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
...
@@ -12,6 +13,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
...
@@ -12,6 +13,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableSwagger2
@EnableSwagger2
@SpringBootApplication
@SpringBootApplication
@EnableTransactionManagement
@EnableTransactionManagement
@ComponentScan
(
basePackages
=
{
"com.egolm.payment.alipay,com.egolm.payment.wxpay"
})
//包名
public
class
PaymentApplication
{
public
class
PaymentApplication
{
private
static
ApplicationContext
applicationContext
;
private
static
ApplicationContext
applicationContext
;
...
...
src/main/java/com/egolm/payment/alipay/controller/AliPayTestController.java
0 → 100644
View file @
077efeec
package
com
.
egolm
.
payment
.
alipay
.
controller
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
@Api
(
tags
={
"支付宝测试管理"
})
@RestController
@RequestMapping
(
"alipay"
)
public
class
AliPayTestController
{
@ApiOperation
(
"测试"
)
@ApiImplicitParams
({
})
@RequestMapping
(
value
=
"/t"
,
method
=
RequestMethod
.
POST
)
public
String
sms
(
HttpServletRequest
request
)
{
return
"1111"
;
}
}
src/main/java/c
n/ossip
/payment/config/DataSourceConfig.java
→
src/main/java/c
om/egolm
/payment/config/DataSourceConfig.java
View file @
077efeec
package
c
n
.
ossip
.
payment
.
config
;
package
c
om
.
egolm
.
payment
.
config
;
import
javax.sql.DataSource
;
import
javax.sql.DataSource
;
...
...
src/main/java/c
n/ossip
/payment/config/ExceptionHandler.java
→
src/main/java/c
om/egolm
/payment/config/ExceptionHandler.java
View file @
077efeec
package
c
n
.
ossip
.
payment
.
config
;
package
c
om
.
egolm
.
payment
.
config
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
...
src/main/java/c
n/ossip
/payment/config/SwaggerConfig.java
→
src/main/java/c
om/egolm
/payment/config/SwaggerConfig.java
View file @
077efeec
package
c
n
.
ossip
.
payment
.
config
;
package
c
om
.
egolm
.
payment
.
config
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
...
@@ -25,8 +25,8 @@ public class SwaggerConfig {
...
@@ -25,8 +25,8 @@ public class SwaggerConfig {
private
ApiInfo
apiInfo
()
{
private
ApiInfo
apiInfo
()
{
return
new
ApiInfoBuilder
()
return
new
ApiInfoBuilder
()
.
title
(
"
MessageCenter
在线文档"
)
.
title
(
"
在线支付
在线文档"
)
.
description
(
"
MessageCenter
在线文档"
)
.
description
(
"在线文档"
)
.
termsOfServiceUrl
(
"NO terms of service"
)
.
termsOfServiceUrl
(
"NO terms of service"
)
.
version
(
"1.0"
)
.
version
(
"1.0"
)
.
build
();
.
build
();
...
...
src/main/java/c
n/ossip
/payment/config/WebMvcConfig.java
→
src/main/java/c
om/egolm
/payment/config/WebMvcConfig.java
View file @
077efeec
package
c
n
.
ossip
.
payment
.
config
;
package
c
om
.
egolm
.
payment
.
config
;
import
java.util.EventListener
;
import
java.util.EventListener
;
...
...
src/main/java/c
n/ossip
/payment/config/XException.java
→
src/main/java/c
om/egolm
/payment/config/XException.java
View file @
077efeec
package
c
n
.
ossip
.
payment
.
config
;
package
c
om
.
egolm
.
payment
.
config
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.bean.Rjx
;
...
...
src/main/java/com/egolm/payment/wxpay/controller/WXTestController.java
0 → 100644
View file @
077efeec
package
com
.
egolm
.
payment
.
wxpay
.
controller
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
@Api
(
tags
={
"微信测试管理"
})
@RestController
@RequestMapping
(
"wxpay"
)
public
class
WXTestController
{
@ApiOperation
(
"测试"
)
@ApiImplicitParams
({
})
@RequestMapping
(
value
=
"/t"
,
method
=
RequestMethod
.
POST
)
public
String
sms
(
HttpServletRequest
request
)
{
return
"1111"
;
}
}
src/main/resources/application-dev.properties
View file @
077efeec
server.tomcat.max-threads
=
1000
server.tomcat.max-threads
=
1000
server.tomcat.min-spare-threads
=
30
server.tomcat.min-spare-threads
=
30
server.port
=
8086
server.port
=
30004
server.context-path
=
/
server.context-path
=
/
payment
server.session.timeout
=
90000
server.session.timeout
=
90000
server.tomcat.uri-encoding
=
utf-8
server.tomcat.uri-encoding
=
utf-8
...
@@ -12,9 +12,9 @@ spring.http.encoding.enabled=true
...
@@ -12,9 +12,9 @@ spring.http.encoding.enabled=true
spring.http.encoding.charset
=
utf-8
spring.http.encoding.charset
=
utf-8
spring.datasource.username
=
sa
spring.datasource.username
=
ERP
spring.datasource.password
=
qiyang
spring.datasource.password
=
qiyang
@2013
spring.datasource.url
=
jdbc:sqlserver://10.10.0.
51:56443;instanceName=SQLSERVER;DatabaseName=EGOLMSAAS
spring.datasource.url
=
jdbc:sqlserver://10.10.0.
22:1433;instanceName=SQLSERVER;DatabaseName=EGOLMDEV
spring.datasource.driver-class-name
=
com.microsoft.sqlserver.jdbc.SQLServerDriver
spring.datasource.driver-class-name
=
com.microsoft.sqlserver.jdbc.SQLServerDriver
spring.datasource.testWhileIdle
=
true
spring.datasource.testWhileIdle
=
true
spring.datasource.validationQuery
=
SELECT 1
spring.datasource.validationQuery
=
SELECT 1
...
...
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