spring-BeanCreationException

2017-2-16 diaba Spring

服务错误异常log: HTTP Status 500 - Servlet.init() for servlet applicationContext threw exception type Exception report message Servlet.init() for servlet applicationContext threw exception description The server encountered an internal error that prevented it from fulfilling this...

阅读全文>>

评论(0) 浏览(2799)

springmvc-@RequestParam设置是否必填参数优缺点分析

2016-11-23 diaba Spring

通过如下代码设置参数是否必输: @RequestParam(value = "parameterName", required = true) String parameterName 优点:简单,不用代码进行检查输入参数是否有值 缺点:如果没有填写该参数值,被springmvc直接拦截,该方法中的任何日志都不会生效,查询到日志如下 2016-11-23 11:44:47 |-DEBUG org.springframework.web.servlet.DispatcherServlet - Null ModelAndView...

阅读全文>>

标签: 参数必填

评论(0) 浏览(9029)

SpringMVC:类中的@Autowired未生效(未自动注入)

2016-8-12 diaba Spring

调用时发现标记为@Autowired的变量是null的,检查了半天,发现类是这样拿到的 Class classType = Class.forName(classPath); Method method = classType.getDeclaredMethod("triggerPlaceOrderEngine", new Class[]{String.class}); Map map = (Map) method.invoke(classType.newInstance(), dataJson); ...

阅读全文>>

标签: 自动注入

评论(0) 浏览(4616)

SpringMVC:HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.builder.IncompleteElementException: Could not find result map java.util.Map

2016-8-11 diaba Spring

HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.builder.IncompleteElementException: Could not find result map java.util.Map type Exception report message Request processing failed; nested exception is org.apache.ibatis.builder.IncompleteElementException: Coul...

阅读全文>>

标签: springmvc

评论(0) 浏览(3371)

SpringMVC:Null ModelAndView returned to DispatcherServlet with name 'applicationContext': assuming HandlerAdapter completed request handling

2016-3-21 diaba Spring

Null ModelAndView returned to DispatcherServlet with name 'applicationContext': assuming HandlerAdapter completed request handling 问题现象: 后台输出: 2016-03-21 16:00:40 |-DEBUG org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'applicationC...

阅读全文>>

标签: springmvc

评论(3) 浏览(22408)

Powered by emlog 京ICP备15045175号-1 Copyright © 2022