01 2021 档案
摘要:第一种在sql语句中起别名: 如: <select id="getEmployeeById" resultMap="myMap"> select id id,q_name qName from employees where id = #{id} </select> 第二种驼峰命名法: <!-- <
阅读全文
摘要:第一种办法:在web.xml中引入过滤器 <filter> <filter-name>CharacterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter<
阅读全文
摘要:beans.xml配置文件 <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSc
阅读全文
摘要:/*设计模式:解决某一类问题最行之有效的方法。java中23种设计模式:单例设计模式:解决一个类在内存只存在一个对象。 想要保证对象唯一。1,为了避免其他程序过多建立该类对象。先禁止其他程序建立该类对象2,还为了让其他程序可以访问到该类对象,只好在本类中,自定义一个对象。3,为了方便其他程序对自定义
阅读全文

浙公网安备 33010602011771号