配置pom.xml、spring.xml、spring-mvc.xml、spring-mybatis.xml、web.xml
摘要:原博客 (1)修改pom.xml文件,引入jar包[html] view plain copy <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc
阅读全文
java中使用连接池的写法
摘要:s=conn.createStatement(); String sql="SELECT COUNT(*) count from t_wlk where (status=19 or status=0) and department in ('dx','dxft');"; ResultSet rs=s
阅读全文
获取上月的时间
摘要:1: Calendar calendar=Calendar.getInstance(); calendar.add(Calendar.MONTH,-1); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM"); String lastDa
阅读全文