cleanup
This commit is contained in:
+1
@@ -45,6 +45,7 @@ public class AccountManagerTest extends SpringContextTestCase {
|
||||
assertEquals("loginName may not be empty",
|
||||
StringUtils.join(BeanValidators.extractPropertyAndMessage(e), ','));
|
||||
}
|
||||
|
||||
User userDTOWitWrongEmail = AccountData.getRandomUser();
|
||||
userDTOWitWrongEmail.setEmail("abc");
|
||||
try {
|
||||
|
||||
+6
@@ -20,6 +20,9 @@ import org.springside.modules.utils.Collections3;
|
||||
public class GroupListEditor extends PropertyEditorSupport {
|
||||
private AccountManager accountManager;
|
||||
|
||||
/**
|
||||
* Back From Page
|
||||
*/
|
||||
@Override
|
||||
public void setAsText(String text) throws IllegalArgumentException {
|
||||
String[] ids = StringUtils.split(text, ",");
|
||||
@@ -31,6 +34,9 @@ public class GroupListEditor extends PropertyEditorSupport {
|
||||
setValue(groups);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set to page
|
||||
*/
|
||||
@Override
|
||||
public String getAsText() {
|
||||
return Collections3.extractToString((List) getValue(), "id", ",");
|
||||
|
||||
@@ -13,18 +13,27 @@
|
||||
</context:component-scan>
|
||||
|
||||
<mvc:annotation-driven />
|
||||
|
||||
<mvc:view-controller path="/" view-name="redirect:/account/user/"/>
|
||||
|
||||
<mvc:resources mapping="/static/**" location="/static/" />
|
||||
|
||||
|
||||
<mvc:default-servlet-handler/>
|
||||
|
||||
|
||||
<!-- 定义首页 -->
|
||||
<mvc:view-controller path="/" view-name="redirect:/account/user/"/>
|
||||
|
||||
<!-- 定义JSP -->
|
||||
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
||||
<property name="prefix" value="/WEB-INF/views/"/>
|
||||
<property name="suffix" value=".jsp"/>
|
||||
</bean>
|
||||
|
||||
<!-- 支持 Shiro对Controller的AOP安全控制 begin-->
|
||||
<bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator" depends-on="lifecycleBeanPostProcessor">
|
||||
<property name="proxyTargetClass" value="true" />
|
||||
</bean>
|
||||
|
||||
<bean class="org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor">
|
||||
<property name="securityManager" ref="securityManager"/>
|
||||
</bean>
|
||||
|
||||
<bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
|
||||
<property name="exceptionMappings">
|
||||
<props>
|
||||
@@ -32,11 +41,6 @@
|
||||
</props>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator" depends-on="lifecycleBeanPostProcessor"/>
|
||||
|
||||
<bean class="org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor">
|
||||
<property name="securityManager" ref="securityManager"/>
|
||||
</bean>
|
||||
<!-- end -->
|
||||
|
||||
</beans>
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
|
||||
<mvc:annotation-driven />
|
||||
|
||||
<mvc:default-servlet-handler/>
|
||||
|
||||
<!-- 定义首页 -->
|
||||
<mvc:view-controller path="/" view-name="forward:/index"/>
|
||||
|
||||
<mvc:resources mapping="/static/**" location="/static/" />
|
||||
|
||||
<mvc:default-servlet-handler/>
|
||||
|
||||
<!-- 定义JSP -->
|
||||
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
||||
<property name="prefix" value="/WEB-INF/views/"/>
|
||||
<property name="suffix" value=".jsp"/>
|
||||
|
||||
Reference in New Issue
Block a user