上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 28 下一页
摘要: 1.springMVC中文乱码过滤器 <!--springmvc过滤器,防止乱码--> <filter> <filter-name>CharacterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.C 阅读全文
posted @ 2022-01-20 17:25 卡卡发 阅读(114) 评论(0) 推荐(0)
摘要: (1)${pageContext.request.contextPath} 参考链接:https://www.cnblogs.com/zshibo/p/8011514.html ${pageContext.request.contextPath}是JSP取得绝对路径的方法,等价于<%=request 阅读全文
posted @ 2022-01-20 16:09 卡卡发 阅读(48) 评论(0) 推荐(0)
摘要: 前端: Bootstrap:https://www.bootcss.com/ Bootstrap可视化布局系统: https://www.bootcss.com/p/layoutit/ jQuery API 3.5.1 速查表:https://jquery.cuishifeng.cn/index.h 阅读全文
posted @ 2022-01-20 14:10 卡卡发 阅读(65) 评论(0) 推荐(0)
摘要: 1.用了@autowired注解后不用写setter方法了 2.中文乱码的问题 阅读全文
posted @ 2022-01-18 17:29 卡卡发 阅读(45) 评论(0) 推荐(0)
摘要: 1.注解@Autowired @Qualifier 2.前端页面编写 3.web.xml中DispatcherServlet的绑定的配置文件为spring的总配置文件 4.找不到数据库资源,配置中的classpath路径问题 阅读全文
posted @ 2022-01-18 09:26 卡卡发 阅读(34) 评论(0) 推荐(0)
摘要: 1.spring-mvc.xml:注解驱动,component-scan扫描controller包,配置视图解析器。 2.spring-mvc.xml整合到applicatContext.xml。 3.web.xml:配置DispatcherServlet,配置乱码过滤 阅读全文
posted @ 2022-01-17 17:02 卡卡发 阅读(46) 评论(0) 推荐(0)
摘要: 1.spring-mapper.xml:配置datasource,sqlSessionFactory,配置mapper接口扫描包(目的是动态注入到spring)。 2.spring-service.xml:component-scan用注解来发,将所有的业务类注入到spring,配置声明式事务。 3.将两个配置文件整合到applicationContext.xml中 阅读全文
posted @ 2022-01-17 16:47 卡卡发 阅读(31) 评论(0) 推荐(0)
摘要: 1.数据库key创建索引; 2.pojo,mapper(mapper.xml映射),service(service实现类); 3.编写properties文件(在spring配置文件配置数据源),mybatis配置文件配置别名和mapper注册 阅读全文
posted @ 2022-01-14 17:19 卡卡发 阅读(62) 评论(0) 推荐(0)
摘要: 阿里开发的工具包 阅读全文
posted @ 2022-01-14 14:50 卡卡发 阅读(40) 评论(0) 推荐(0)
摘要: 1.@Controller 这个注解会走视图解析器; 2.@ResponseBody 这个注解,则这个方法就不会走视图解析器,会直接返回一个字符串; 3.用@RestController来代替@Controller加@ResponseBody的功能 4.json乱码问题配置 5.创建一个JSON工具类,提取公共部分 阅读全文
posted @ 2022-01-14 14:35 卡卡发 阅读(166) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 28 下一页