Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change black list file or other ways #27

Closed
leizhiyuan opened this issue Dec 27, 2018 · 0 comments
Closed

Change black list file or other ways #27

leizhiyuan opened this issue Dec 27, 2018 · 0 comments
Labels
document The document was modified
Milestone

Comments

@leizhiyuan
Copy link
Contributor

leizhiyuan commented Dec 27, 2018

like file order, so users can override by rewrite it.

在这个版本里,我们允许用户自己指定hessian黑名单,用于自身业务的一些特殊诉求。使用方法

  1. 升级到hessian 3.3.6
  2. 新建一个文件,放到项目的src/main/resources 目录下。可以有子目录。比如

security/blacklist.txt

image
3.指定启动参数
-Dserialize.blacklist.file=security/blacklist.txt 即可。hessian会从相对resources的跟路径中进行读取。

@leizhiyuan leizhiyuan added this to the 3.3.5 milestone Jan 2, 2019
@leizhiyuan leizhiyuan added the document The document was modified label Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
document The document was modified
Projects
None yet
Development

No branches or pull requests

1 participant