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
JSH ERP
Commits
25488748
Commit
25488748
authored
May 06, 2021
by
季圣华
Browse files
解决swagger的api不能访问的bug
parent
30e5136c
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/ErpApplication.java
View file @
25488748
...
...
@@ -21,7 +21,8 @@ public class ErpApplication{
public
static
void
main
(
String
[]
args
)
throws
IOException
{
ConfigurableApplicationContext
context
=
SpringApplication
.
run
(
ErpApplication
.
class
,
args
);
Environment
environment
=
context
.
getBean
(
Environment
.
class
);
System
.
out
.
println
(
"启动成功,后端服务地址:http://"
+
ComputerInfo
.
getIpAddr
()
+
":"
+
environment
.
getProperty
(
"server.port"
)
+
",您还需启动前端服务,测试用户:jsh,密码:123456"
);
System
.
out
.
println
(
"启动成功,后端服务API地址:http://"
+
ComputerInfo
.
getIpAddr
()
+
":"
+
environment
.
getProperty
(
"server.port"
)
+
"/jshERP-boot/doc.html"
);
System
.
out
.
println
(
"您还需启动前端服务,启动命令:yarn run serve 或 npm run serve,测试用户:jsh,密码:123456"
);
}
}
jshERP-boot/src/main/java/com/jsh/erp/filter/LogCostFilter.java
View file @
25488748
...
...
@@ -19,7 +19,7 @@ import java.util.regex.Pattern;
initParams
=
{
@WebInitParam
(
name
=
"ignoredUrl"
,
value
=
".ico"
),
@WebInitParam
(
name
=
"filterPath"
,
value
=
"/jshERP-boot/user/login#/jshERP-boot/user/registerUser#/jshERP-boot/user/randomImage"
+
"#/jshERP-boot/platformConfig/getPlatformName#/jshERP-boot/v2/api-docs"
)})
"#/jshERP-boot/platformConfig/getPlatformName#/jshERP-boot/v2/api-docs
#/jshERP-boot/webjars
"
)})
public
class
LogCostFilter
implements
Filter
{
private
static
final
String
FILTER_PATH
=
"filterPath"
;
...
...
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