![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA征程
qq_17394183
这个作者很懒,什么都没留下…
展开
-
java包自启动配置
1、cd /usr/lib/systemd/system2、新建开机自启脚本 vi xxx-service.service#!/bin/sh[Unit]Description=serverCenter-serviceAfter=syslog.target network.target remote-fs.target nss-lookup.target[Service]Type=f...原创 2019-12-03 14:51:14 · 180 阅读 · 0 评论 -
Intellij – 无法使用较新的Java 8类 – 错误:“API的用法记录为@since 1.8+
IDEA软件报错内容:问题描述我试图在我的java 8代码库中使用java.lang.function.Function,但是我在Intellij中收到以下错误。Usage of API documented as @since 1.6+ This inspection finds all usages of methods that have @since tag in their do...转载 2019-05-05 15:01:50 · 1552 阅读 · 0 评论 -
jdk8的特性stream().map()
转:https://blog.csdn.net/sanchan/article/details/70753645java8的optional的使用:http://www.jdon.com/idea/java/using-optional-effectively-in-java-8.htmlhttp://www.runoob.com/java/java8-optional-class.htm...转载 2019-05-05 15:04:36 · 9848 阅读 · 0 评论 -
JAVA将带时区的时间格式字符串转换成yyyy-MM-dd HH:mm:ss格式字符串
public static void main(String[] args) {try{// SimpleDateFormat sdf = new SimpleDateFormat(“yyyy-MM-dd’T’HH:mm:ss.SSS’+’”);// Date date = sdf.parse(“2019-05-14T13:49:23.047+08...原创 2019-05-15 11:43:46 · 7720 阅读 · 0 评论 -
JAVA将时间加/减8小时
SimpleDateFormat sdfFormat = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”);Date dateStart;Date dateEnd;try {dateStart = sdfFormat.parse(“2019-01-01 00:00:00");dateEnd = sdfFormat.parse(“2019-02-01 ...转载 2019-05-23 20:41:53 · 18916 阅读 · 0 评论