Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
fbe90090
Commit
fbe90090
authored
Feb 23, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加日志
parent
57217be4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
Config.java
...rc/main/java/com/gic/haoban/manage/web/config/Config.java
+2
-0
ApplicationController.java
...c/haoban/manage/web/controller/ApplicationController.java
+5
-1
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/config/Config.java
View file @
fbe90090
package
com
.
gic
.
haoban
.
manage
.
web
.
config
;
import
com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Configuration
;
...
...
@@ -7,6 +8,7 @@ import org.springframework.context.annotation.Configuration;
* Created by tgs on 2020/2/23.
*/
@Configuration
@EnableApolloConfig
public
class
Config
{
@Value
(
"${corpid}"
)
private
String
corpid
;
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/ApplicationController.java
View file @
fbe90090
...
...
@@ -3,6 +3,7 @@ package com.gic.haoban.manage.web.controller;
import
java.util.List
;
import
com.alibaba.fastjson.JSON
;
import
com.ctrip.framework.apollo.spring.annotation.ApolloConfig
;
import
com.gic.haoban.common.utils.GlobalVar
;
import
com.gic.haoban.manage.api.dto.*
;
import
com.gic.haoban.manage.api.service.WxApplicationApiService
;
...
...
@@ -34,6 +35,8 @@ public class ApplicationController extends WebBaseController{
private
WxEnterpriseApiService
wxEnterpriseApiService
;
@Autowired
private
Config
config
;
@ApolloConfig
private
com
.
ctrip
.
framework
.
apollo
.
Config
config1
;
@RequestMapping
(
"application-list"
)
public
HaobanResponse
applicationList
()
{
...
...
@@ -46,7 +49,8 @@ public class ApplicationController extends WebBaseController{
@IgnoreLogin
public
HaobanResponse
getAuthUrl
(){
//String suiteId = GlobalVar.ctxPropertiesMap.get("suiteId");
System
.
out
.
println
(
config
.
getCorpid
());
log
.
info
(
"从config中取到的值:{}"
,
config
.
getCorpid
());
log
.
info
(
"111:{}"
,
config1
.
getProperty
(
"corpid"
,
"corpidvalue"
));
String
suiteId
=
"ww7d6566614055cf27"
;
log
.
info
(
"应用ID:{}"
,
suiteId
);
String
redictUrl
=
"https://www.gicdev.com/haoban-manage3-web/callback"
;
...
...
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