最小化 SpringLdap 依赖
我想使用 SpringLDAP 进行一些简单的用户名/密码验证以进行身份验证。虽然实际的 jar 文件非常小(小于 1 meg),但它似乎有很多依赖项,如 链接文本。
我的意思是它似乎吸收了 50 多个东西,其中许多东西看起来不正确,例如 spring-jdbc,因为我不需要任何 jdbc,只需要 ldap 模板类及其裸露的依赖项。在不浪费太多时间的情况下,spring-ldap 可以只具有最少数量的依赖项,相当于:
- spring core
- spring ldap
- 无论它们需要什么日志记录。
- spring tx
我不明白也不明白为什么需要其余的凝灰岩,并且想知道如果坚持基本知识,任何人都可以验证它们最终是否真的需要。我提到的其他内容也包括:
- spring-orm // no jdbc
- beans // i don't Want ioc。
- spring-aop // 不需要aop。
我打算手动连接我将使用的豆子。我不想在那里设置一些属性,并且想要确认我不需要什么可能只是为了做 ioc 的东西,而我想要的只是 ldap 的东西。
I would like to use SpringLDAP to do some simple username/password verification for authentication purposes. WHile the actual jar file is quite small (less than 1 meg) it seems to have a lot of dependencies as listed by link text.
By alot i mean it seems to suck in over 50 things many which dont seem right such as spring-jdbc as I dont want any jdbc and only the ldap template class and its bare dependencies. Without wasting too much time is it possible to the spring-ldap with only a bare minimum number of dependencies which amount to something like:
- spring core
- spring ldap
- whatever logging deps they require.
- spring tx
I dont see or appreciate why the rest of thes tuff is reuqired and was wondering can anyone verify they arent really needed in the end if one sticks to the basics. The other stuff i am referring too include:
- spring-orm // no jdbc
- beans // i dont want ioc.
- spring-aop // no need for aop.
I intend to wire up the beans i will be using manually. I dont want more crap in there for what ammounts to setting a few properties, and want confirmation that I dont need what is probably there just to do the ioc stuff when all i want is the ldap stuff.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很多被吸引的东西都是传递依赖——spring-ldap 所依赖的东西的依赖。您可以在使用 声明依赖项时明确排除这些依赖项依赖项中的排除 标记。
At lot of the things that are sucked in are transitive dependencies - dependencies of the things that spring-ldap relies upon. You can explicity exclude these when declaring your dependencies using the exclusions tag in the dependency.