Commit e95f5d0c authored by 张永's avatar 张永

改目录

parent bee8a2ac
...@@ -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.shop; package com.egolm.shop;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
......
package cn.ossip.shop.config; package com.egolm.shop.config;
import javax.sql.DataSource; import javax.sql.DataSource;
......
package cn.ossip.shop.config; package com.egolm.shop.config;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
......
package cn.ossip.shop.config; package com.egolm.shop.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,7 +25,7 @@ public class SwaggerConfig { ...@@ -25,7 +25,7 @@ public class SwaggerConfig {
private ApiInfo apiInfo() { private ApiInfo apiInfo() {
return new ApiInfoBuilder() return new ApiInfoBuilder()
.title("在线文档") .title("前端接口在线文档")
.description("在线文档") .description("在线文档")
.termsOfServiceUrl("NO terms of service") .termsOfServiceUrl("NO terms of service")
.version("1.0") .version("1.0")
......
package cn.ossip.shop.config; package com.egolm.shop.config;
import java.util.EventListener; import java.util.EventListener;
......
package cn.ossip.shop.config; package com.egolm.shop.config;
import com.egolm.common.bean.Rjx; import com.egolm.common.bean.Rjx;
......
package com.egolm.shop.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("test")
public class TestController {
@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=8087 server.port=30005
server.context-path=/ server.context-path=/shop
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