原因是:LoginController中用到,自动注入,要配置在 /permission1110/config/spring/applicationContext-service.xml中配置bean
@Controller
public class LoginController {
@Autowired
private SysService sysService;
---
<!-- 认证和授权的service -->
<bean id="sysService" class="cn.itcast.ssm.service.impl.SysServiceImpl"></bean>