Wesley13 Wesley13
3年前
java几秒前,几分钟前,几小时前,几天前,几月前,几年前的实现
package com.date;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Date;public class RelativeDateFormat {
昔不亏 昔不亏
4年前
「组件」侧边hover锚点导航双向绑定
样式如图:1:在components文件夹下新建SideAnchorNav.vuejs<template<divclass"sideAnchorNav"<divclass"leftnav":class"navText?'navHover':''"@mouseenter"navTexttrue"@mou
Stella981 Stella981
3年前
CAT RuntimeException
Caused by: java.lang.RuntimeException: Duplicated name(home) found between handleInbound() of class com.dianping.cat.report.page.home.Handler and handleInbound() of c
Stella981 Stella981
3年前
Selenium 详解CSS定位
xpath定位是“屠龙刀”,那CSS定位就是"倚天剑了",相对xpath来说,具有语法简单,定位速度快等优点一、属性定位1、可以通过元素的id,class,tag标签这三个属性直接定位  表示id属性,如:kw.  表示class属性,如:.s\_ipt直接用标签名称,如:inpu
Stella981 Stella981
3年前
CSS _text
参考:https://segmentfault.com/q/1010000007136263法一:textalignlast:justify;html<div<pclass"item"<labelfor"name"class"itemLabel"姓名</la
Wesley13 Wesley13
3年前
JAVA 线程基本知识汇总--ThreadLocal 和 InheritableThreadLoc
package org.test;public class ThreadLocalTest {public static void main(String args) {User user  new User(new ThreadLocal<String());Book book 
Stella981 Stella981
3年前
SpringBoot 启动失败 Failed to determine a suitable driver class 问题解决方案
SpringBoot启动失败Failedtodetermineasuitabledriverclass问题解决方案参考文章:(1)SpringBoot启动失败Failedtodetermineasuitabledriverclass问题解决方案(https://www.oschina.net/actio
Wesley13 Wesley13
3年前
C#压缩解压缩文件(zip格式)
using System;using System.Collections.Generic;using System.IO;using ICSharpCode.SharpZipLib.Zip;namespace TestConsole{    internal class Prog
Stella981 Stella981
3年前
Hibernate映射文件结构
映射文件的根元素为<hibernatemapping,其下有多个<class子元素,每个<class代表多个持久化类的映射。该<hibernatemapping有如下属性:1)schema:指定所映射的数据库Schema名,如果指定了该属性,则表名会自动添加该Schema前缀。2)catalog:指定所映射的数据库的Catalog名,如果
Wesley13 Wesley13
3年前
JAVA虚拟机——利用javap反编译class文件分析代码执行过程
我们经常会看到或者听到java代码要如何如何优化,这样写不对,那样写性能不高等等,可是我们如何去伪求真呢?就以Java代码性能优化总结(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.rmworking.com%2Fblog%2F2017%2F03%2F11%2Fjava