摘要:
主要是在配置文件中,配置好所要包含的字段。类关系:account----role,1对1account包含role类java类:public class Account{ private Integer accountId; private String username; priv... 阅读全文
摘要:
web.xml配置: dispatcher / 不要设置为*.do之类,这样只会拦截.do后缀名文件,设置为/,可以拦截所有请求。可以单独给页面设置后缀。如下java代码然后java代码:@Controllerpublic class IndexController { @Requ... 阅读全文