
Spring+SpringMVC
o_oer
这个作者很懒,什么都没留下…
展开
-
Spring MVC 页面跳转知识点
背景:电商项目中采用 Spring MVC,而我对这块只是了解过SpringMVC的原理,并没有实操经验在Controller类中,@Controller("xxController")@RequestMapping("/member/AA") ----浏览器中URL的前缀public class XXController extends BaseController {原创 2017-09-05 18:51:50 · 387 阅读 · 0 评论 -
“疑难杂症”乱炖一篇
近期在上线一个模块,工作量比较大,故晚上经常性加班,工作日生活有点两点一线。期间遇到了形形色色的一些问题,大致记录下。工具:IDEAQ1:修改了一个Entity,准备删掉一个字段。启动tomcat时候,localhost:8080 无法正常打开网页。Debugger显示:Connected to the target VM, address: '127.0.0.1:57484'原创 2017-10-18 20:04:48 · 377 阅读 · 0 评论 -
NoSuchBeanDefinitionException: No qualifying bean of type 'net.shopxx.service.xxxService' available:
报错信息:HTTP Status 500 - Request processing failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'xxxController': Unsatisfied dep原创 2018-03-05 18:06:59 · 871 阅读 · 0 评论 -
shiro访问权限报错:getPathWithinApplication(servletRequest) == /error
业务:post数据到 /aaa/bbb/cc,然后被shiro拦截,输出getPathWithinApplication(servletRequest) == "/error"getPathWithinApplication(servletRequest) //当前请求访问的路径但是项目中所有的路径中并无此路径。跟前端同事讨论了一下,最后发现,在controller中配置中:...原创 2018-09-14 10:36:39 · 1264 阅读 · 0 评论 -
常用注解(区分和记录为主,摘取重点内容,其它详看链接)
1,@SpringBootApplication@SpringBootApplication的使用内置servlet容器2,@RestController@Controller和@RestController的区别?3, @RequestMapping(value = "/xxx", method = RequestMethod.GET, produces = "text/ht...原创 2018-10-08 15:41:59 · 217 阅读 · 0 评论 -
Error creating bean ... java.lang.NullPointerException: null (创建bean空指针)
报错日志: ... 779mmon frames omittedCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xxxxxDao': FactoryBean threw exception on object creation; nest...原创 2018-09-30 11:01:23 · 2314 阅读 · 0 评论 -
统计方法的执行时间(仅转载记录)
springboot中通过aop的形式获取方法执行时间Spring AOP @Before @Around @After 等 advice 的执行顺序转载 2019-01-03 09:27:41 · 797 阅读 · 0 评论