Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
Project
Project
Details
Activity
Releases
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
马博
test-platform
Commits
a9ebfe8a
Commit
a9ebfe8a
authored
Jan 09, 2019
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui update
parent
fc1b2c6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Config.java
src/test/java/base/Config.java
+6
-6
DingdingResult.java
src/test/java/base/DingdingResult.java
+1
-1
No files found.
src/test/java/base/Config.java
View file @
a9ebfe8a
...
...
@@ -13,10 +13,10 @@ import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
@ComponentScan
(
basePackages
=
{
"ui"
,
"http"
,
"base"
,
"utils"
})
@PropertySource
(
value
=
{
"duiba.properties"
})
public
class
Config
{
@Bean
public
PropertySourcesPlaceholderConfigurer
propertyConfigInDev
()
{
PropertySourcesPlaceholderConfigurer
pspc
=
new
PropertySourcesPlaceholderConfigurer
();
pspc
.
setFileEncoding
(
"UTF-8"
);
return
pspc
;
}
//
@Bean
//
public PropertySourcesPlaceholderConfigurer propertyConfigInDev() {
//
PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer();
//
pspc.setFileEncoding("UTF-8");
//
return pspc;
//
}
}
src/test/java/base/DingdingResult.java
View file @
a9ebfe8a
...
...
@@ -140,7 +140,7 @@ public class DingdingResult {
public
String
getByRun
(
String
run
,
String
type
)
throws
UnsupportedEncodingException
{
run
=
run
.
substring
(
run
.
indexOf
(
"_"
)+
1
,
run
.
indexOf
(
"."
));
run
=
this
.
env
.
getProperty
(
run
+
"."
+
type
);
return
run
;
//
new String(run.getBytes("ISO-8859-1"), "UTF-8");//ISO-8859-1
return
new
String
(
run
.
getBytes
(
"ISO-8859-1"
),
"UTF-8"
);
//ISO-8859-1
}
public
static
void
main
(
String
[]
args
)
throws
UnsupportedEncodingException
{
...
...
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