Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
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
head_group
xyqb-user2
Commits
e94e42f7
Commit
e94e42f7
authored
Jan 08, 2018
by
Java—红包—徐 然
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into feature/201801041612
parents
02f25acf
30c3b8d4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
4 deletions
+35
-4
pom.xml
pom.xml
+5
-0
Bootstrap.java
src/main/java/cn/quantgroup/xyqb/Bootstrap.java
+3
-0
SentryConfig.java
...n/java/cn/quantgroup/xyqb/config/sentry/SentryConfig.java
+26
-0
InnerController.java
...tgroup/xyqb/controller/external/user/InnerController.java
+1
-4
No files found.
pom.xml
View file @
e94e42f7
...
@@ -312,6 +312,11 @@
...
@@ -312,6 +312,11 @@
<artifactId>
quantgroup-sms-sdk
</artifactId>
<artifactId>
quantgroup-sms-sdk
</artifactId>
<version>
3.0
</version>
<version>
3.0
</version>
</dependency>
</dependency>
<dependency>
<groupId>
io.sentry
</groupId>
<artifactId>
sentry-spring
</artifactId>
<version>
1.6.3
</version>
</dependency>
</dependencies>
</dependencies>
...
...
src/main/java/cn/quantgroup/xyqb/Bootstrap.java
View file @
e94e42f7
...
@@ -4,6 +4,7 @@ import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
...
@@ -4,6 +4,7 @@ import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.ctrip.framework.apollo.spring.config.ApolloPropertySourceInitializer
;
import
com.weibo.api.motan.common.MotanConstants
;
import
com.weibo.api.motan.common.MotanConstants
;
import
com.weibo.api.motan.util.MotanSwitcherUtil
;
import
com.weibo.api.motan.util.MotanSwitcherUtil
;
import
io.sentry.Sentry
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
...
@@ -45,5 +46,7 @@ public class Bootstrap {
...
@@ -45,5 +46,7 @@ public class Bootstrap {
springApplication
.
setRegisterShutdownHook
(
true
);
springApplication
.
setRegisterShutdownHook
(
true
);
springApplication
.
run
(
args
);
springApplication
.
run
(
args
);
log
.
info
(
"server start..."
);
log
.
info
(
"server start..."
);
Sentry
.
init
(
"http://13ef5642903a414c910f8d0e0a2c56ee:8b351ad1abf44de3b4c25f39105fb927@172.16.4.89:9000/6"
);
}
}
}
}
src/main/java/cn/quantgroup/xyqb/config/sentry/SentryConfig.java
0 → 100644
View file @
e94e42f7
package
cn
.
quantgroup
.
xyqb
.
config
.
sentry
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.web.servlet.ServletContextInitializer
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.servlet.HandlerExceptionResolver
;
/**
* @author xufei on 2017/12/27.
*/
@Controller
@EnableAutoConfiguration
@SpringBootApplication
public
class
SentryConfig
{
@Bean
public
HandlerExceptionResolver
sentryExceptionResolver
()
{
return
new
io
.
sentry
.
spring
.
SentryExceptionResolver
();
}
@Bean
public
ServletContextInitializer
sentryServletContextInitializer
()
{
return
new
io
.
sentry
.
spring
.
SentryServletContextInitializer
();
}
}
src/main/java/cn/quantgroup/xyqb/controller/external/user/InnerController.java
View file @
e94e42f7
...
@@ -31,10 +31,7 @@ import org.slf4j.LoggerFactory;
...
@@ -31,10 +31,7 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
...
...
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