Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
aserver
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
15所TongWeb
aserver
Commits
fa95f289
Commit
fa95f289
authored
Dec 25, 2020
by
李德才
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改SN文件地质
parent
7fd0a8a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
SnService.java
src/main/java/com/archser/aserver/service/SnService.java
+2
-1
No files found.
src/main/java/com/archser/aserver/service/SnService.java
View file @
fa95f289
...
@@ -17,7 +17,7 @@ public class SnService {
...
@@ -17,7 +17,7 @@ public class SnService {
static
{
static
{
FILE_PATH
=
PathKit
.
getWebRootPath
().
replace
(
"webapp"
,
"resources"
)
+
File
.
separator
+
"SN.properties"
;
FILE_PATH
=
PathKit
.
getRootClassPath
(
)
+
File
.
separator
+
"SN.properties"
;
}
}
...
@@ -28,6 +28,7 @@ public class SnService {
...
@@ -28,6 +28,7 @@ public class SnService {
* @return
* @return
*/
*/
public
String
getPropertiesValue
(
String
cpuCode
)
{
public
String
getPropertiesValue
(
String
cpuCode
)
{
System
.
err
.
println
(
FILE_PATH
);
Object
redisSnCode
=
Redis
.
use
().
get
(
PREFIX
+
cpuCode
);
Object
redisSnCode
=
Redis
.
use
().
get
(
PREFIX
+
cpuCode
);
if
(
redisSnCode
!=
null
)
{
if
(
redisSnCode
!=
null
)
{
return
redisSnCode
.
toString
();
return
redisSnCode
.
toString
();
...
...
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