单项选择题
A.可以通过配置指定的URL(使用authorizeRequests()与antMatchers 或mvcMatcher 方法),最特别的匹配在先,最不特别的匹配在后
B.可以通过配置指定的URL(使用authorizeRequests()和antMatchers 或mvcMatchers 方法),最不特别的匹配在先,最特别的匹配在后
C.URLs 必须在web.xml 或你的WebApplicationInitializer 实现中被指定为Servlet 映射的一部分(如果使用Servlet 3)
D.URL 是在一个特殊的属性文件中指定的,被Spring Security 使用
单项选择题 考虑代码中的事务服务层类。@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
单项选择题 考虑代码中的事务性服务层类。你使用的是 Spring 事务,它内部使用 Spring AOP 调用 update1 方法时,发生了什么事情?()public class ClientServiceImpl implements ClientService{@Transactional (propagation=Propagation.REQUIRED)public void update1(){update2();}@Transactional(propagation=Propagation.REQUIRES_NEW)public void update2(){}}