Home
Sign Up
Sign In
V2EX
›
问与答
Spring Boot 中怎么得到当前 action 的 name?
azev
·
Oct 11, 2018
· 1542 views
This topic created in 2968 days ago, the information mentioned may be changed or developed.
主要是在页面的 thymeleaf 模板中使用,能在模板页面直接拿到更好, 模板页面拿不到的话,后端代码里能不能拿到?
模板
页面
thymeleaf
Boot
1 replies
letitbesqzr
Oct 11, 2018
1
Thread.currentThread().getStackTrace()[1].getMethodName();
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
954 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms ·
UTC 19:55
·
PVG 03:55
·
LAX 11:55
·
JFK 14:55
♥ Do have faith in what you're doing.
❯