j_spring_security_check这个是spring security里面的约定。 你看applicationContext-security.xml是否有 <!-- 认证配置 --> <s:authentication-provider user-service-ref="userDetailsService"> <!-- 可设置hash使用sha1或md5散列密码后再存入数据库 --> <s:password-encoder hash="plaintext" /> </s:authentication-provider> <!-- 项目实现的用户查询服务 --> <bean id="userDetailsService" class="com.ghl.security.service.impl.UserDetailsServiceImpl"> </bean> 之类的代码,他会自动调用UserDetailsServiceImpl下的loadUserByUsername方法, 其中: public class UserDetailsServiceImpl implements UserDetailsService SQLSTATE 57016: 因为表不活动,所以不能对其进行访问。解决方法为:执行命令:reorg table XXX;即可。 db2 reorg table ODSUSER.UNTECK_ORGANIZATION