摘要: 1.在.properties配置文件中 添加第二个数据源信息(type2,driver2, url2,username2,pawwword2) 2.修改spring-context.xml(src/main/resources/),有3处需要修改/添加第一处,添加bean id="dataSourc 阅读全文
posted @ 2018-11-07 10:00 农名工进城 阅读(442) 评论(0) 推荐(0) 编辑
摘要: import java.math.BigDecimal; /** * 用于高精确处理常用的数学运算 */ public class ArithmeticUtils { //默认除法运算精度 private static final int DEF_DIV_SCALE = 10; /** * 提供精确 阅读全文
posted @ 2022-05-18 09:34 农名工进城 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 1.maven依赖 <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-redis --> <dependency> <groupId>org.springframework.data</group 阅读全文
posted @ 2021-08-12 15:05 农名工进城 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 1.引入html2canvas.js 2.调用 2.1 <script src="html2canvas.js"></script> 2.2 定义一个div,这是需要截图的区域,<div id='map' style="height: 50%;width: 50%;top: 25%;left: 50 阅读全文
posted @ 2021-07-30 13:51 农名工进城 阅读(2248) 评论(0) 推荐(0) 编辑
摘要: 1.服务器开启远程调试模式,增加JVM启动参数,以支持远程调试 服务器端的tomcat/bin/catalina.sh文件,在第一行添加参数配置如下(要确保下面的端口没有被占用)。CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server= 阅读全文
posted @ 2020-12-24 10:15 农名工进城 阅读(814) 评论(0) 推荐(0) 编辑
摘要: https://gitee.com/itwanger/JavaBooks#%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F 阅读全文
posted @ 2020-11-20 15:20 农名工进城 阅读(82) 评论(0) 推荐(0) 编辑
摘要: web.xml中配置: <context-param> <param-name>webAppRootKey</param-name> <param-value>app1.root</param-value> </context-param> <context-param> <param-name>w 阅读全文
posted @ 2020-11-20 10:46 农名工进城 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 1. 加入依赖 <!--redis--> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.9.0</version> </dependency> <!-- config r 阅读全文
posted @ 2020-11-19 17:47 农名工进城 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 1.使用Win+R打开运行对话框,输入regedit,点击确定打开注册表; 2.找到“HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome”目录下,若Policies文件夹下没有“Google\Chrome”路径,则自己新建“项”,按照对应路径名称进行 阅读全文
posted @ 2020-10-30 09:25 农名工进城 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 前言 单个参数 多个参数 使用索引【不推荐】 使用@Param 使用Map POJO【推荐】 List传参 数组传参 总结 单个参数 单个参数的传参比较简单,可以是任意形式的,比如#{a}、#{b}或者#{param1},但是为了开发规范,尽量使用和入参时一样。 UserInfo selectByU 阅读全文
posted @ 2020-09-29 15:56 农名工进城 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1. 客户端提交: 方法1: git add --all 或 git add 文件1 文件2 ... git commit -m '提交备注信息' git push 方法2: git add -A git commit -m '提交备注信息' git push 2. 客户端拉取: 第一种方法 git 阅读全文
posted @ 2020-09-18 16:33 农名工进城 阅读(962) 评论(0) 推荐(0) 编辑