Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
V2EX
›
问与答
Spring Boot 中怎么得到当前 action 的 name?
azev
·
Oct 11, 2018
· 1260 views
This topic created in 2765 days ago, the information mentioned may be changed or developed.
主要是在页面的 thymeleaf 模板中使用,能在模板页面直接拿到更好, 模板页面拿不到的话,后端代码里能不能拿到?
模板
页面
thymeleaf
Boot
1 replies
1
letitbesqzr
Oct 11, 2018
Thread.currentThread().getStackTrace()[1].getMethodName();
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
1153 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms ·
UTC 23:08
·
PVG 07:08
·
LAX 16:08
·
JFK 19:08
♥ Do have faith in what you're doing.
❯