最新发布第8页
JavaScript保留两位小数-Ddmit

JavaScript保留两位小数

JavaScript 保留两位小数的实现方法如下: 四舍五入 var num =2.446242342; num = num.toFixed(2); //输出结果为 2.45 不四舍五入 方法1:先把小数变整数 Math.floor(15.7784514000 * 100) / 10...
ddmit的头像-DdmitDdmit6年前
016180
MyBatis Generator生成代码报错:Table configuration with catalog null-Ddmit

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,错误原因是...
ddmit的头像-DdmitDdmit6年前
041230
Maven配置之MyBatis Generator Maven Plugin(三步学会使用MyBatis Generator生成代码)-Ddmit

Maven配置之MyBatis Generator Maven Plugin(三步学会使用MyBatis Generator生成代码)

学习使用Maven Mybatis插件MyBatis Generator Maven Plugin自动生成实体类、Example类等详细配置。 开发环境:IntelliJ IDEA 2018.3 1.添加插件依赖 插件依赖如下: <plugin> <groupId...
ddmit的头像-DdmitDdmit6年前
042000
Spring BOOT三步入门-Ddmit

Spring BOOT三步入门

三步开始一个Spring Boot项目: 1.官网生成框架代码 访问 https://start.spring.io/,添加自己需要的依赖,这里添加web依赖,如下图: 2.新建一个RestController 使用IDEA,File->Open打开解...
手动更新Chevereto免费图床-Ddmit

手动更新Chevereto免费图床

自动更新Chevereto提示因权限导致失败,于是手动更新: 环境: CentOS Linux release 7.5.1804 (Core); php-7.2.11; 更新操作 clone代码 git clone https://github.com/Chevereto/Chevereto-F...
ddmit的头像-DdmitDdmit6年前
027870
解决:cloudflare redirected you too many times-Ddmit

解决:cloudflare redirected you too many times

将域名的DNS更改为Cloudflare后有很多好处,比如使用Cloudflare的CDN加速功能、隐藏你的真实IP地址等,Cloudflare的DNS如下: leah.ns.cloudflare.com vern.ns.cloudflare.com 具体解析设置: 1...
ddmit的头像-DdmitDdmit6年前
024890
Linux netstat命令详解及使用示例-Ddmit

Linux netstat命令详解及使用示例

Linux netstat命令用于显示网络状态,利用netstat指令可让你得知整个Linux系统的网络情况。 语法: netstat [-acCeFghilMnNoprstuvVwx][-A<网络类型>][--ip] 参数说明 -a或--all 显示所有...
ddmit的头像-DdmitDdmit6年前
015750
JFreeChart如何设置柱状图宽度-Ddmit

JFreeChart如何设置柱状图宽度

在jfreechart中如果不设置柱形图宽度的话,jfreechart会默认设定宽度,就会出现一个图形里只有一个柱的超宽柱形图,很不美观,可以通过下列代码设置宽度: BarRenderer barrenderer = new BarRe...
ddmit的头像-DdmitDdmit6年前
021320
Java中保留小数(精确到小数点几位)-Ddmit

Java中保留小数(精确到小数点几位)

这里提供三种实现方式: 实现代码 import java.math.BigDecimal; import java.text.DecimalFormat; /** * @author 四个空格-https://www.4spaces.org/ */ public class JavaSetScale { public s...
ddmit的头像-DdmitDdmit6年前
022790
盘点Java中复制文件的4种方式-Ddmit

盘点Java中复制文件的4种方式

盘点Java中实现文件复制的4中方式。 使用FileStreams复制 这是最经典的方式将一个文件的内容复制到另一个文件中。 使用FileInputStream读取文件A的字节,使用FileOutputStream写入到文件B。 这...
ddmit的头像-DdmitDdmit6年前
021090