单项选择题
A.这种配置是正确的
B.这个配置是无效的,因为第一个bean 应该有一个id,可以使用@Bean("rewardNetwork")来设置它
C.这个配置是无效的,因为第二个bean 应该有一个id,可以使用@Bean("accountRepository")来设置它
D.这个配置是无效的,因为两个bean 都应该有一个用@Bean 指定的id
单项选择题 对于配置Spring Security 以拦截特定URL,以下哪种策略是正确的?()
单项选择题 考虑代码中的事务服务层类。@Transactional(timeout=60)public class ClientServiceImpl implements ClientService {@Transactional(timeout=30)public void update1(){}}}对事务的 update1 方法应用什么超时设置?()
单项选择题 已给出下面的 pointcut,下列哪些关于 Spring AOP 的说法是正确的?()execution(@com.mycomp.MyCustomAnnotation void *(..))1. Spring 不支持其 pointcut 表达式语言内部的注解2. 这将选择代表被@com.mycomp.MyCustomAnnotation 注解的 void 方法的 join point3. 这将选择代表只位于根包中的类的方法的 join point4. 这个 pointcut 将永远无法选择任何 join point