一、动态创建对象 1.新建一个接口:IDbHelper.cs public interface IDbHelper { void Query(); } 2.新建一个类:DbHelper.cs 继承 IDbHelper.cs 接口 public class DbHelper : IDbHelper { ...
分类:
其他好文 时间:
2020-09-07 19:08:28
阅读次数:
44
JDBC JDBC是什么? Java DataBase Connectivity(Java语言连接数据库) JDBC的本质是什么? JDBC是SUN公司制定的一套接口(interface) 接口都是有调用者和实践者。 面向接口调用、面向接口写实现类,这都属于面向接口编程。 为什么要面向接口编程? 解 ...
分类:
数据库 时间:
2020-09-04 17:24:26
阅读次数:
52
ip命令管理网卡:禁用网卡:iplinkseteth1down启用网卡:iplinkseteth1up更改名称:iplinkseteth1nameethwang添加IP:ipaddradd192.168.179.150/24deveth1labeleth1:0删除IP:ipaddrdel192.168.179.150/24deveth1labeleth1:0清楚网卡:ipaddrflushdeve
分类:
Web程序 时间:
2020-09-03 16:31:10
阅读次数:
134
Lambda表达式概念 Lambda表达式,从本质来讲,是一个匿名函数。可以使用这个匿名函数,实现接口中的方法。 函数式接口 一个接口中,要求实现类必须实现的抽象方法,有且只有一个。 interface Test() { void test(); default void test() {} //d ...
分类:
其他好文 时间:
2020-09-02 18:12:48
阅读次数:
51
实验环境:centos6centos7IP规划:centos6:eth0+eth1=bond0bond0:192.168.16.100centos7:eth0:192.168.16.66实验目的:实现centos6的网卡冗错,网卡的高可用实验步骤:centos6添加两块网卡:eth0,eth1分别配置:vimifcfg-eth0NAME=eth0DEVICE=eth0ONBOOT=yesMASTE
分类:
其他好文 时间:
2020-08-27 17:04:16
阅读次数:
65
Api: 数据访问层: public interface Iromdal { //显示房间信息表 List<Room> GetRooms(); //显示房间类别 List<Roomtype> Roomtypes(); //详情反填 Room Fant(int uid); //登录token User ...
分类:
Web程序 时间:
2020-08-27 13:10:20
阅读次数:
61
###关键字总览 访问控制 private protected public 类,方法和变量修饰符 abstract class extends final implements interface native new static strictfp synchronized transient ...
分类:
编程语言 时间:
2020-08-24 16:33:44
阅读次数:
46
待测试的服务接口: public interface ItemService { String getItemNameUpperCase(String itemId); } 预览 待测试的服务的实现类: @Service public class ItemServiceImpl implements ...
分类:
编程语言 时间:
2020-08-19 19:57:15
阅读次数:
70
1.在虚拟机ubuntu上搭建ROS和ROS interface教程:http://wiki.ros.org/nao/Tutorials/Installation 需要注意一下Ubuntu系统的版本,应该用Ubuntu Trusty (14.04 LTS),ROS版本对应Ubuntu版本的链接htt ...
分类:
其他好文 时间:
2020-08-18 14:00:18
阅读次数:
66
前段时间安装了centosmirror以后,没试用过联网功能,今天刚好再次使用centos,然后ping了一下网络,发现失败,使用ifconfig查看了一下网卡,发现网卡ip为:127.0.0.1,大家都知道这个ip地址显然无法连接互联网,然后通过查看/etc/sysconfig/network-scripts/ifcfg-eth0发现了问题,只要将ONBOOT设置为ONBOOT=yes。ONBO
分类:
数据库 时间:
2020-08-18 13:14:23
阅读次数:
85