Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
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
曲欣亮
shop
Commits
e95f5d0c
Commit
e95f5d0c
authored
Aug 06, 2018
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改目录
parent
bee8a2ac
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
43 additions
and
12 deletions
+43
-12
pom.xml
pom.xml
+5
-0
ShopApplication.java
src/main/java/com/egolm/shop/ShopApplication.java
+1
-1
DataSourceConfig.java
src/main/java/com/egolm/shop/config/DataSourceConfig.java
+1
-1
ExceptionHandler.java
src/main/java/com/egolm/shop/config/ExceptionHandler.java
+1
-1
SwaggerConfig.java
src/main/java/com/egolm/shop/config/SwaggerConfig.java
+2
-2
WebMvcConfig.java
src/main/java/com/egolm/shop/config/WebMvcConfig.java
+1
-1
XException.java
src/main/java/com/egolm/shop/config/XException.java
+1
-1
TestController.java
src/main/java/com/egolm/shop/controller/TestController.java
+26
-0
application-dev.properties
src/main/resources/application-dev.properties
+5
-5
No files found.
pom.xml
View file @
e95f5d0c
...
...
@@ -21,6 +21,11 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-devtools
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
...
...
src/main/java/c
n/ossip
/shop/ShopApplication.java
→
src/main/java/c
om/egolm
/shop/ShopApplication.java
View file @
e95f5d0c
package
c
n
.
ossip
.
shop
;
package
c
om
.
egolm
.
shop
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
...
...
src/main/java/c
n/ossip
/shop/config/DataSourceConfig.java
→
src/main/java/c
om/egolm
/shop/config/DataSourceConfig.java
View file @
e95f5d0c
package
c
n
.
ossip
.
shop
.
config
;
package
c
om
.
egolm
.
shop
.
config
;
import
javax.sql.DataSource
;
...
...
src/main/java/c
n/ossip
/shop/config/ExceptionHandler.java
→
src/main/java/c
om/egolm
/shop/config/ExceptionHandler.java
View file @
e95f5d0c
package
c
n
.
ossip
.
shop
.
config
;
package
c
om
.
egolm
.
shop
.
config
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
...
...
src/main/java/c
n/ossip
/shop/config/SwaggerConfig.java
→
src/main/java/c
om/egolm
/shop/config/SwaggerConfig.java
View file @
e95f5d0c
package
c
n
.
ossip
.
shop
.
config
;
package
c
om
.
egolm
.
shop
.
config
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
@@ -25,7 +25,7 @@ public class SwaggerConfig {
private
ApiInfo
apiInfo
()
{
return
new
ApiInfoBuilder
()
.
title
(
"在线文档"
)
.
title
(
"
前端接口
在线文档"
)
.
description
(
"在线文档"
)
.
termsOfServiceUrl
(
"NO terms of service"
)
.
version
(
"1.0"
)
...
...
src/main/java/c
n/ossip
/shop/config/WebMvcConfig.java
→
src/main/java/c
om/egolm
/shop/config/WebMvcConfig.java
View file @
e95f5d0c
package
c
n
.
ossip
.
shop
.
config
;
package
c
om
.
egolm
.
shop
.
config
;
import
java.util.EventListener
;
...
...
src/main/java/c
n/ossip
/shop/config/XException.java
→
src/main/java/c
om/egolm
/shop/config/XException.java
View file @
e95f5d0c
package
c
n
.
ossip
.
shop
.
config
;
package
c
om
.
egolm
.
shop
.
config
;
import
com.egolm.common.bean.Rjx
;
...
...
src/main/java/com/egolm/shop/controller/TestController.java
0 → 100644
View file @
e95f5d0c
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"
;
}
}
src/main/resources/application-dev.properties
View file @
e95f5d0c
server.tomcat.max-threads
=
1000
server.tomcat.min-spare-threads
=
30
server.port
=
8087
server.context-path
=
/
server.port
=
30005
server.context-path
=
/
shop
server.session.timeout
=
90000
server.tomcat.uri-encoding
=
utf-8
...
...
@@ -12,9 +12,9 @@ spring.http.encoding.enabled=true
spring.http.encoding.charset
=
utf-8
spring.datasource.username
=
sa
spring.datasource.password
=
qiyang
spring.datasource.url
=
jdbc:sqlserver://10.10.0.
51:56443;instanceName=SQLSERVER;DatabaseName=EGOLMSAAS
spring.datasource.username
=
ERP
spring.datasource.password
=
qiyang
@2013
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.testWhileIdle
=
true
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