Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
what is the meaning of the $ sign in the following code:
<h1 class="title">Welcome ${consumer.first_name} </h1>
它是一个表达式(将其视为访问 Java 对象值的一种方式)。
${consumer.first_name}
相当于
<% out.print(consumer.getFirst_Name()); %>
在这里,consumer将是某个范围(请求、会话等)中的属性
consumer
阅读表达语言
这是访问变量的方法之一。看看这个链接。