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.
我正在尝试编写游戏,目前我正在使用 Singletons 来维护游戏的状态。我的单例状态中的数据结构是简单的 C 结构。
我有以下情况
/drug 下的所有内容都是安全的我不希望用户能够查看 /drug 下的任何内容,所以我在我的 spring 安全配置中有这个规则。
<intercept-url pattern="/drug/**" access="hasRole('ROLE_