1、流程 1)、导包 commons-logging-1.1.3.jar spring-aop-4.0.0.RELEASE.jar spring-beans-4.0.0.RELEASE.jar spring-context-4.0.0.RELEASE.jar spring-core-4.0.0.RE ...
分类:
编程语言 时间:
2020-06-17 20:09:43
阅读次数:
50
1.所需的jar包 https://mvnrepository.com/artifact/commons-dbutils/commons-dbutils 2.重点类/接口 QueryRunner: 实现增删查改操作 ResultSetHandler:接口;实现类返回结果/结果类型 3.增删查改 /* ...
分类:
数据库 时间:
2020-06-17 12:40:28
阅读次数:
54
apache 有个开源库:commons-net,这个开源库中包括了各种基础的网络工具类,我使用了这个开源库中的 FTP 工具。 但碰到一些问题,并不是说是开源库的 bug,可能锅得算在产品头上吧,各种奇怪需求。 问题 当将网络限速成 1KB/S 时,使用 commons-net 开源库中的 FTP ...
分类:
其他好文 时间:
2020-06-17 12:26:37
阅读次数:
55
可选的工具 中文转换Unicode,目前有两种方式,自写工具类或引入第三方包,这里我推荐引入三方包,因为使用mvn配置非常简单,网上搜到的大多数都是自己写的工具类,试了一个,效果不是很好,因为把ASCII编码也转成Unicode格式了(一色的\u\u\u),虽然能用,但是可读性降低。 引入第三方包, ...
分类:
编程语言 时间:
2020-06-16 20:04:04
阅读次数:
157
1、学习文档 老版学习地址 新版学习地址 2、MVC特点 轻量级,简单易学 高效,基于请求响应的MVC框架 与Spring兼容性好,无缝结合 约定优于配置 功能强大:RESTful、数据验证、格式化、本地化、主题等 简洁灵活 3、在idea中配置tomcat 1、在idea上面的导航栏中点击运行环境 ...
分类:
编程语言 时间:
2020-06-14 19:05:38
阅读次数:
64
1.新建一个ssm项目 maven 中的 webapp,(一些基本新建操作) 2.在pom文件中导入4个基础包及其Commons-logging的JAR包;(spring-beans;spring-context;spring-core;spring-expression)在https://mvnr ...
分类:
编程语言 时间:
2020-06-14 18:46:30
阅读次数:
173
1.mysql操作 1 import pymysql 2 from DBUtils.PooledDB import PooledDB 3 4 5 class SQLHandler(object): 6 def __init__(self, host, port, db_username, db_pa ...
分类:
数据库 时间:
2020-06-14 15:06:26
阅读次数:
88
上传文件a.引入两个jar apache:commons-fileupload.jar组件 commons-fileupload.jar组件依赖commons-io.jarb.代码前台jsp: <input type="file" name="spicture"/> 表单提交方式必须为post在表单 ...
分类:
Web程序 时间:
2020-06-12 21:46:26
阅读次数:
83
1 import com.alibaba.fastjson.JSON; 2 import lombok.extern.slf4j.Slf4j; 3 import org.apache.commons.collections4.CollectionUtils; 4 import org.apache. ...
分类:
其他好文 时间:
2020-06-12 11:13:07
阅读次数:
56
一、commons-lang3简介 commons-lang3是Apache的Jakarta commons工程下具有一系列公共基础类。 Apache的Jakarta commons工程项目列表路径:http://commons.apache.org Commons基础类包基本上是基于JDK API ...
分类:
编程语言 时间:
2020-06-11 19:28:58
阅读次数:
71