07 2016 档案
摘要:<!-- 注解驱动 --> <mvc:annotation-driven/> <!-- 静态资源,图片 --> <mvc:resources location="/images/" mapping="/images/**"/> <!-- 自动扫描controller --> <context:com
阅读全文
摘要:import java.text.SimpleDateFormat; import java.util.Date; Person person = new Person(); person.setName("james"); person.setAge(28); person.setAddress("maami"); Simpl...
阅读全文
摘要:DOM对象和jQuery对象之间的转换 hello
阅读全文
摘要:转JSON"/> 转JSON"/> 转JSON --> 转JSON -->
阅读全文
摘要:Insert title here 详细地址: public class ControllerServlet extends HttpServlet { private static final long serialVersionUID = 1L; private BusinessService...
阅读全文
摘要:@Controller public class OutProductController extends BaseController { @Resource OutProductService outProductService; //转向输入年月的页面 @RequestMapping("/cargo/outproduct/toedit.action...
阅读全文
摘要:targetFile ${contentType} atta...
阅读全文
摘要:public class LoginInterceptor implements HandlerInterceptor { /** * 进行action方法之前执行,在此方法实现身份认证拦截 */ @Override public boolean preHandle(HttpServletRequest request, ...
阅读全文
摘要:public class CustomExceptionResolver implements HandlerExceptionResolver { //前端控制器DispatcherServlet在进行HandlerMapping、调用HandlerAdapter执行Handler过程中,如果遇到异常就会执行此方法 //handler最终要执行的Handler...
阅读全文
摘要:public String editItemSubmit(Model model,Integer id, @Validated(value={ValidGroup1.class}) @ModelAttribute(value="itemsCustom") ItemsCustom itemsCustom, Bindi...
阅读全文
摘要:@Override protected void buildExcelDocument(Map map, HSSFWorkbook hssfWorkbook, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception { List lis...
阅读全文
摘要:对于get乱码 String userName = new String(request.getParamter("userName").getBytes("ISO8859-1"),"utf-8") 或者 <Connector URIEncoding="utf-8" connectionTimeou
阅读全文