Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
23311bab
Commit
23311bab
authored
Jul 31, 2018
by
Menethil
Browse files
打印信息添加服务器端口
parent
a5ca53c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
litemall-core/src/main/java/org/linlinjava/litemall/core/system/SystemInistService.java
View file @
23311bab
...
...
@@ -31,6 +31,7 @@ class SystemInistService {
infos
.
put
(
SystemInfoPrinter
.
CREATE_PART_COPPER
+
0
,
"系统信息"
);
// 测试获取application-db.yml配置信息
infos
.
put
(
"服务器端口"
,
environment
.
getProperty
(
"server.port"
));
infos
.
put
(
"数据库USER"
,
environment
.
getProperty
(
"spring.datasource.druid.username"
));
infos
.
put
(
"数据库地址"
,
environment
.
getProperty
(
"spring.datasource.druid.url"
));
infos
.
put
(
"调试级别"
,
environment
.
getProperty
(
"logging.level.org.linlinjava.litemall.wx"
));
...
...
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxHomeController.java
View file @
23311bab
package
org.linlinjava.litemall.wx.web
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.linlinjava.litemall.core.util.ResponseUtil
;
import
org.linlinjava.litemall.db.domain.*
;
import
org.linlinjava.litemall.db.service.*
;
...
...
@@ -19,8 +17,6 @@ import java.util.Map;
@RestController
@RequestMapping
(
"/wx/home"
)
public
class
WxHomeController
{
private
final
Log
logger
=
LogFactory
.
getLog
(
WxHomeController
.
class
);
@Autowired
private
LitemallAdService
adService
;
@Autowired
...
...
Write
Preview
Supports
Markdown
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