1、代码运行就报 空指针异常 。后来发现是 controller 调用 service 时,未使用 @Autowired 注解引入 service
2、开发过程中,突然发现 样式表单未载入,因为它的MIME类型 “text/html” 不是 “text/css” , 后来发现是controller 中有个@RequestMapping() 的括号内未填写内容。
0
♥ Do have faith in what you're doing.
1、代码运行就报 空指针异常 。后来发现是 controller 调用 service 时,未使用 @Autowired 注解引入 service
2、开发过程中,突然发现 样式表单未载入,因为它的MIME类型 “text/html” 不是 “text/css” , 后来发现是controller 中有个@RequestMapping() 的括号内未填写内容。