CoCoYuYuan

Results 6 comments of CoCoYuYuan

我也观察了dubbo内的文档,可是只是提到了要security/serialize.allowlist 资源文件中声明您所使用的类名,Dubbo 将自动将其加载到安全列表中这么操作,没具体演示应该怎么弄,所以我很困惑

我尝试了几种文件创建如: ![image](https://user-images.githubusercontent.com/111859745/229753616-520424b5-2813-40b6-86bf-c3353552d82f.png) 如: ![image](https://user-images.githubusercontent.com/111859745/229753983-fe0fa5da-8a9c-40a4-a383-3c828fdb5984.png) 如: ![image](https://user-images.githubusercontent.com/111859745/229754428-8dacacbb-9d5e-4eac-89f6-a433ebd7315e.png) 重新启动后还是一样的错误,文件里面的值我填充的是 com.lc.entity.TestInfo 请告知该如何弄,这让我很困惑 > 在resources 目录下创建 security/serialize.allowlist 文件,将你需要序列化的类填进去

![image](https://user-images.githubusercontent.com/111859745/229757507-6bc267aa-e732-4089-b34a-7358cc893623.png) 添加了 ![image](https://user-images.githubusercontent.com/111859745/229757560-170dca9a-8107-4bc3-8962-a38a94c390cc.png) 可是还是提示一样错误,是我的依赖没有给对吗?我已经被这个东西弄晕了

我重新的创建了一下这些文件 如果是这样的话那似乎没生效? ![image](https://user-images.githubusercontent.com/111859745/229760909-d9597bc3-c5f0-4e9f-b29a-2af20bd7bd5f.png)

> 你的日志里 有这个开头的么 。。`Read serialize allow list from` 有的,启动完成后共有6处以`Read serialize allow list from`开头的数据, 2023-04-04 22:11:15.528 INFO 19992 --- [ main] o.a.d.c.u.SerializeSecurityConfigurator : [DUBBO] Read serialize allow list from file:/E:/workspace/new/cloud-immigrant/lc-consumer/lc-consumer-mobileProgram/target/classes/security/serialize.allowlist, dubbo...