【发布时间】:2018-11-27 06:54:24
【问题描述】:
我在 Thymeleaf 模板中定义了一个 URL 以连接到需要记录 userId 的 RESTful API,我已经尝试过了,但是检查了模板的源代码,userId 没有被替换
var ajaxUrl = /*[[@{/api/users/@{|~/${#authentication.id}/menus/datatableList}]]*/ "";
【问题讨论】:
-
应该在
<script th:inline="javascript">AFAIR..
标签: jquery spring-mvc spring-boot spring-security thymeleaf