我正在关注Spring LDAP项目的示例,并尝试将xml配置转换为Java Configuration.
我正在尝试在LDAP服务器上执行CRUD操作.
我能够弄清楚以下几点,
这是应用程序的xml配置,我希望将其转换为Java Config.
<context:property-placeholder location="classpath:/ldap.properties"
system-properties-mode="OVERRIDE" />
<context:annotation-config />
<ldap:context-source id="contextSource" password="${sample.ldap.password}"
url="${sample.ldap.url}" username="${sample.ldap.userDn}" base="${sample.ldap.base}" />
<ldap:ldap-template id="ldapTemplate"
context-source-ref="contextSource" />
<!-- This will scan the org.springframework.ldap.samples.useradmin.domain
package for interfaces extending CrudRepository (in our case, LdapRepository),
automatically creating repository beans based on these interfaces. -->
<ldap:repositories base-package="com.cazysystems.appstore.model" />
<!-- This one will never be referenced directly, but the ldap:repositories
tag will make sure it will be 'wired in', because …Run Code Online (Sandbox Code Playgroud) 安装后awscli.我尝试了文档中提到的help命令,
$ aws help
Run Code Online (Sandbox Code Playgroud)
当我这样做时,我可以全屏看到以下页面.似乎无法摆脱它.
我试过Ctrl+C,它不会回到我的Ubuntu命令行.
AWS() AWS()
NAME
aws -
DESCRIPTION
The AWS Command Line Interface is a unified tool to manage your AWS
services.
SYNOPSIS
aws [options] <command> <subcommand> [parameters]
Use aws command help for information on a specific command. Use aws
help topics to view a list of available help topics. The synopsis for
each command shows its parameters and their usage. Optional parameters
are shown in square brackets.
Run Code Online (Sandbox Code Playgroud) 我想知道我在这里做错了什么,因为我已经完成了加载类型,它不是递归的.但是我收到以下错误.当我尝试从访问对象访问getServerRequest()方法时.
WARN 6511 --- [nio-8080-exec-2] .wsmsDefaultHandlerExceptionResolver:写入HTTP消息失败:org.springframework.http.converter.HttpMessageNotWritableException:无法写入内容:无限递归(StackOverflowError)(通过参考链:com. biscoind.domain.ServerRequest [ "访问"] - > org.hibernate.collection.internal.PersistentBag [0] - > com.biscoind.domain.Visit [ "请求"] - > com.biscoind.domain.ServerRequest ["访问"] - > org.hibernate.collection.internal.PersistentBag [0] - > com.biscoind.domain.Visit [" 请求 "] - > com.biscoind.domain.ServerRequest [" 访问"] - > org.hibernate作为. collection.internal.PersistentBag [0] - > com.biscoind.domain.Visit [ "请求"] - > com.biscoind.domain.ServerRequest [ "访问"] - > org.hibernate.collection.internal.PersistentBag [0] - > com.biscoind.domain.Visit [ "请求"] - > com.biscoind.domain.ServerRequest [ "访问"] - > org.hibernate.collection.internal.PersistentBag [0] - > com.biscoind.domain.访问[ "请求"] - > com.biscoind.domain.ServerRequest [ "访问"] - …