Home
Sign Up
Sign In
V2EX
›
问与答
Spring Boot 中怎么得到当前 action 的 name?
azev
·
Oct 11, 2018
· 1550 views
This topic created in 2970 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
·
1849 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms ·
UTC 10:19
·
PVG 18:19
·
LAX 02:19
·
JFK 05:19
♥ Do have faith in what you're doing.
❯