06 2019 档案
摘要:HashSet hs=new HashSet(); Integer i=0; while (i<9){ int s=(int) Math.ceil((Math.random()*9)); hs.add(s); i=hs.size(); } for(Integer s:hs) { System.out.println(s); }
阅读全文
摘要:首先点击help 》Eclipse Marketplace >在find中搜索mybatis下面图片的第一个 点击installed 还需要一个配置文件generatorConfig.xml 然后运行这个配置文件 运行选项使用这个插件运行(mybatis Generator)
阅读全文
摘要:DBTools类 jdbc.properties url=jdbc:mysql://localhost:3306/books?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8 dao内的mapper文件可以用mybatis的插
阅读全文
摘要:springmvc.xml <!--拦截请求 --> <mvc:interceptors> <mvc:interceptor> <!-- 要拦截的请求类型 /** 所以请求 --> <mvc:mapping path="/**"/> <!-- 不拦截的请求 --> <mvc:exclude-mapp
阅读全文
摘要:web.xml配置 <filter> <filter-name>LoginFilter</filter-name> //编写拦截的类的全类名 <filter-class>cn.books.filter.LoginFilter</filter-class> </filter> <filter-mapp
阅读全文
摘要:使用request.getRequestDispather(url).forword(request,response)方法跳转页面 地址栏的路径不会发生改变,在后续的ajax调用 使用window.location.href=“”时会出现页面跳转不过去的现象 如果不进行传值,最好采用respons
阅读全文

浙公网安备 33010602011771号