摘要: 1、此方法用于没有一点提示的情况:依次打开eclipse上面的windows ——preferences ——java ——editor —— content assist ,在右上方有一行“select the proposal kinds contained in the 'default' c 阅读全文
posted @ 2017-05-26 16:15 小摔哥#1 阅读(369) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/liukemng/p/3754211.html Spring MVC学习系列(11)之表单标签 阅读全文
posted @ 2017-05-23 22:15 小摔哥#1 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 新下载的Tomcat7.0 解压缩完了运行tomcat7.exe屏幕一闪就没了 运行tomcat7w.exe弹出个筐指定的服务并未以已安装的服务存在 Unable to open the Service 'tomcat6' 我安装了tomcat7,双击startup.bat可以正常启动Tomcat, 阅读全文
posted @ 2017-05-22 17:45 小摔哥#1 阅读(1386) 评论(0) 推荐(0) 编辑
摘要: BarRenderer renderer=new BarRenderer(); renderer.setBaseItemLabelGenerator(new StandardCategoryItemLabelGenerator()); renderer.setBaseItemLabelsVisibl 阅读全文
posted @ 2017-04-27 15:11 小摔哥#1 阅读(2410) 评论(0) 推荐(0) 编辑
摘要: 如:<fmt:formatNumber type="number" value="${8/7)}" maxFractionDigits="0"/> 结果为1。 其中maxFractionDigits="0"表示保留0位小数,这样就可以实现取整了。同时这里是按照四舍五入的规则来进行取整的。如果是${2 阅读全文
posted @ 2017-04-26 13:22 小摔哥#1 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 把Dynamic web module 去掉勾选,然后ok,再点开项目的properties,再选中Dynamic web module就出来了。 阅读全文
posted @ 2017-04-23 10:51 小摔哥#1 阅读(2570) 评论(0) 推荐(0) 编辑
摘要: --1分组统计各部门下工资>2000 的员工的平均工资select avg(s.sal) from (select * from emp e where e.sal>2000) s group by deptno; --2 统计各部门下平均工资大于 1600 的部门select e.deptno,a 阅读全文
posted @ 2017-01-10 23:44 小摔哥#1 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: 子查询 --子查询(内查询)在主查询之前一次执行一次完成;子查询的结果被主查询使用(外查询)。 select * from score s where s.grade > (select s.grade from score s where s.id=2); 为表添加删除新的字段 --添加新的字段 阅读全文
posted @ 2017-01-09 00:36 小摔哥#1 阅读(169) 评论(0) 推荐(0) 编辑
摘要: .createNewFile() 创建文件 //创建文件public class t { public static void main(String[] args) { File f = new File("D:/20161229/3.txt"); try { f.createNewFile(); ... 阅读全文
posted @ 2016-12-29 01:53 小摔哥#1 阅读(110) 评论(0) 推荐(0) 编辑
摘要: package hibernate; public class t { public static void main(String[] args) { System.out.println(jiecheng(10)); System.out.println(sum(10)); } //算阶乘的和 public static int sum(int i){ if(i... 阅读全文
posted @ 2016-12-29 01:22 小摔哥#1 阅读(6699) 评论(0) 推荐(0) 编辑