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.
我有一个包含两个服务的 WCF 服务库。这两个服务在其操作中共享一组公共类。
当我使用 svcutil.exe 生成 WCF 代理时,我得到了两组代理类(每个服务一个)。有没有办法让它只生成一组这些共享类?或者我是否必须将这些类划分为单独的命名空间?
您可以向 svcutil.exe 命令行提供多个服务端点 URI。当您指定多个端点 URI 时,任何共享公共模式的类型都将生成一次,并在所有服务合同中重用。
http://msdn.microsoft.com/en-us/library/aa347733.aspx
我有以下情况
/drug 下的所有内容都是安全的我不希望用户能够查看 /drug 下的任何内容,所以我在我的 spring 安全配置中有这个规则。
<intercept-url pattern="/drug/**" access="hasRole('ROLE_