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.
我有一个域类的持久性注释 POJO 并且一切正常,但我无法弄清楚如何使其中一个字段瞬态。我在课堂上看到的例子和瞬态领域。这可以在控制器中完成吗?谢谢。
原来我必须在 POJO 本身中注释该字段:
@Transient String someString; // getters, setters, etc. omitted for brevity