摘要: 关于<c:foreach>循环横向展示四条数据,经过反复试验和网上搜索,终于找到完美的解决方法,贴出来代码如下: <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="f12"> <tr 阅读全文
posted @ 2020-09-04 09:33 瓦刀哥 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 为了方便浏览通常将服务器响应回来的大量数据做分页 从实现方式上来说分页基本分为两种方式: 1.查询所有数据返回给客户,通过显示指定区间实现分页,这种方法一般是指JS分页 2.通过客户发送的请求,构造sql语句,查询表中的一段数据。 JS实现分页功能代码 <table width="950" cell 阅读全文
posted @ 2020-09-04 09:28 瓦刀哥 阅读(625) 评论(0) 推荐(0) 编辑
摘要: jsp 前台页面 //输入调用后台接口路径 <a href="../../sjModel">下载模板</a> /** * 数据模板 * LhT * @throws IOException * */ @RequestMapping(value = "sjModel") public String sj 阅读全文
posted @ 2020-08-24 10:15 瓦刀哥 阅读(16) 评论(0) 推荐(0) 编辑
摘要: /** * java 转换日期 lht */ public static Date addDate(Date date,long day) throws ParseException { SimpleDateFormat sim=new SimpleDateFormat("yyyy-MM-dd"); 阅读全文
posted @ 2020-08-24 10:07 瓦刀哥 阅读(990) 评论(0) 推荐(0) 编辑
摘要: package guyu.day0824; import java.net.InetAddress; /** * @Author: LHT * @Date: 2020/8/24 09:39 */public class Demo01 { public static void main(String[ 阅读全文
posted @ 2020-08-24 10:06 瓦刀哥 阅读(302) 评论(0) 推荐(0) 编辑
摘要: /** * 导出excel */ @SuppressWarnings("deprecation") @RequestMapping("exportExcel") public void exportExcel(HttpServletResponse response){ //查询要导出的list// 阅读全文
posted @ 2020-08-24 10:04 瓦刀哥 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 1.首先需要在本地oracle数据库安装路径下找到tnsnames.ora文件 (我的完整路径是D:\XCprogrames\oracle11\product\10.2.0\server\NETWORK\ADMIN) 2.然后用记事本打开。将 ORCL = (DESCRIPTION = (ADDRE 阅读全文
posted @ 2020-06-27 13:42 瓦刀哥 阅读(798) 评论(0) 推荐(0) 编辑
摘要: Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, 阅读全文
posted @ 2020-06-16 14:09 瓦刀哥 阅读(1340) 评论(0) 推荐(0) 编辑
摘要: 一.导出项目文件到本地指定目录。 String filepath="";//项目文件路径 ("static/img/123.png") InputStream inputstream = new FileInputStream(fileName); String filename="";//文件名称 阅读全文
posted @ 2020-06-02 13:57 瓦刀哥 阅读(889) 评论(0) 推荐(0) 编辑
摘要: /** * list去掉重复元素 * * @param datas * @return */ public static List<String> getNoDuplicate1(List<String> datas) { List<String> res = new ArrayList<Strin 阅读全文
posted @ 2020-05-26 09:31 瓦刀哥 阅读(724) 评论(0) 推荐(0) 编辑