最新发布第8页
排序
JavaScript保留两位小数
JavaScript 保留两位小数的实现方法如下: 四舍五入 var num =2.446242342; num = num.toFixed(2); //输出结果为 2.45 不四舍五入 方法1:先把小数变整数 Math.floor(15.7784514000 * 100) / 10...
MyBatis Generator生成代码报错:Table configuration with catalog null
使用MyBatis Generator生成代码报错信息如下: [WARNING] Table configuration with catalog null, schema xe, and table SR_CLASS did not resolve to any tables 数据库是oracle,错误原因是...
Maven配置之MyBatis Generator Maven Plugin(三步学会使用MyBatis Generator生成代码)
学习使用Maven Mybatis插件MyBatis Generator Maven Plugin自动生成实体类、Example类等详细配置。 开发环境:IntelliJ IDEA 2018.3 1.添加插件依赖 插件依赖如下: <plugin> <groupId...
Spring BOOT三步入门
三步开始一个Spring Boot项目: 1.官网生成框架代码 访问 https://start.spring.io/,添加自己需要的依赖,这里添加web依赖,如下图: 2.新建一个RestController 使用IDEA,File->Open打开解...
手动更新Chevereto免费图床
自动更新Chevereto提示因权限导致失败,于是手动更新: 环境: CentOS Linux release 7.5.1804 (Core); php-7.2.11; 更新操作 clone代码 git clone https://github.com/Chevereto/Chevereto-F...
解决:cloudflare redirected you too many times
将域名的DNS更改为Cloudflare后有很多好处,比如使用Cloudflare的CDN加速功能、隐藏你的真实IP地址等,Cloudflare的DNS如下: leah.ns.cloudflare.com vern.ns.cloudflare.com 具体解析设置: 1...
Linux netstat命令详解及使用示例
Linux netstat命令用于显示网络状态,利用netstat指令可让你得知整个Linux系统的网络情况。 语法: netstat [-acCeFghilMnNoprstuvVwx][-A<网络类型>][--ip] 参数说明 -a或--all 显示所有...
JFreeChart如何设置柱状图宽度
在jfreechart中如果不设置柱形图宽度的话,jfreechart会默认设定宽度,就会出现一个图形里只有一个柱的超宽柱形图,很不美观,可以通过下列代码设置宽度: BarRenderer barrenderer = new BarRe...
Java中保留小数(精确到小数点几位)
这里提供三种实现方式: 实现代码 import java.math.BigDecimal; import java.text.DecimalFormat; /** * @author 四个空格-https://www.4spaces.org/ */ public class JavaSetScale { public s...
盘点Java中复制文件的4种方式
盘点Java中实现文件复制的4中方式。 使用FileStreams复制 这是最经典的方式将一个文件的内容复制到另一个文件中。 使用FileInputStream读取文件A的字节,使用FileOutputStream写入到文件B。 这...