Wesley13 Wesley13
4年前
java基础(1)IntelliJ IDEA入门和数组操作 解决idea启动速度慢
一、IntelliJIDEA入门1快捷键和技巧智能补全代码,比如只写首字母按回车:  psvmEnter:publicstacticvoidmain(String\\args)  soutEnter:System.out.printl
Wesley13 Wesley13
4年前
Java获取精确到秒的时间戳
方法一:通过String.substring()方法将最后的三位去掉/获取精确到秒的时间戳@return/publicstaticintgetSecondTimestamp(Datedate){if(nulldate){return0;}Str
Wesley13 Wesley13
4年前
Java JDK 1.7 和 JDK 1.8 新特性
引言  本文主要介绍JavaJDK中1.7和1.8的新特性。JDK1.7新特性  1.switch可以接受String类型;publicclassSwitch{publicvoidtest(Stringstr){switch(str){
Wesley13 Wesley13
4年前
C语言实现将时间戳转换为年月日时分秒和将年月日时分秒转换为时间戳
include<stdio.hinclude<string.htypedefunsignedinttime_t;structtm{  inttm_sec;/秒–取值区间为0,59/  inttm_min;/分取值区间为0,59
Wesley13 Wesley13
4年前
CURL请求
<?php    /        发起一个HTTP(S)请求,并返回json格式的响应数据        @param array 错误信息  array($errorCode, $errorMessage)        @param string 请求Url        @para
Stella981 Stella981
4年前
C++primer学习笔记(六)
1.virtual函数是基类希望派生类重新定义的函数,希望派生类继承的函数不能为虚函数。根类一般要定义虚析构函数。2.派生类只能通过派生类对象访问protected成员,不能用基类对象访问。基类定义为virtual就一直为虚函数,派生类写不写virtual都是虚函数。用做基类的类必须是已定义的。3.存在虚函数指针或引用
Wesley13 Wesley13
4年前
Java基础(1)IntelliJ IDEA入门、常用快捷键和数组操作
一、IntelliJIDEA入门1快捷键和技巧智能补全代码,比如只写首字母按回车:  psvmEnter:publicstacticvoidmain(String\\args)  soutEnter:System.out.printl
Stella981 Stella981
4年前
MyBatis整合Spring的实现(17)
这里也只使用一个例子来分析1方法bindMapperForNamespaceprivate void bindMapperForNamespace() {    // cn.vansky.schedule.time.menu.dao.MenuMapper    String namespace  bui
Stella981 Stella981
4年前
31、最简单的mvc框架tiny,增加Ioc,jdbc工具类(1个类),连接池(1个类)
Ioc按照mvc,我们需要把tiny分成3层,其中视图(Renderer抽象类)和Action我们已经在前面实现了,这次我们用最少的代码实现Model。    model沿用Action的想法,用户自定义类,类名必须以Model结尾,同Action一样在初始化时放入Container容器内。model就是数据模型,我们这里充血模型,model
Wesley13 Wesley13
4年前
Java获取字符串的像素点阵并在命令行下打印输出
下面这个小程序可以获取字符串点阵并在命令行下打印输出:publicclassStringPixelUtils{privatestaticfinalMap<String,booleanlettersMapnewHashMap<();/在内存BufferedImage里输出文