Commit 077efeec authored by 张永's avatar 张永

改目录

parent 289081f9
...@@ -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>
......
package cn.ossip.payment; package com.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;
......
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";
}
}
package cn.ossip.payment.config; package com.egolm.payment.config;
import javax.sql.DataSource; import javax.sql.DataSource;
......
package cn.ossip.payment.config; package com.egolm.payment.config;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
......
package cn.ossip.payment.config; package com.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();
......
package cn.ossip.payment.config; package com.egolm.payment.config;
import java.util.EventListener; import java.util.EventListener;
......
package cn.ossip.payment.config; package com.egolm.payment.config;
import com.egolm.common.bean.Rjx; import com.egolm.common.bean.Rjx;
......
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";
}
}
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment