JAVA August 19, 2018

练习2:字节流读取FileInputStream

Words count 1.1k Reading time 1 mins.

package com.inspur.io;
import java.io.File;
import java.io.FileInputStream;

/**
 * Created by shirukai...
Read article

JAVA August 19, 2018

练习2:字节流读取FileInputStream

Words count 1.1k Reading time 1 mins.

package com.inspur.io;
import java.io.File;
import java.io.FileInputStream;

/**
 * Created by shirukai on 2017/7/26.
 *
 */
public class Fileinputstream {
    public static void main(String[] args){
        Fileinputstream fileinputstream = new Fileinputstream...
Read article

MYSQL August 19, 2018

基础(四):视图操作

Words count 342 Reading time 1 mins.

CREATE  VIEW  VIEW_DEPT_DNO AS SELECT DEPTNO AOC_ID,
DNAME AOC_NAME,LOC AOC_LOC FROM DEPT WHERE LOC ="本部";
DROP VIEW VIEW_DEPT_DNO;
Read article

MYSQL August 19, 2018

基础(三):创建索引

Words count 2.2k Reading time 2 mins.

创建表的时候,创建索引

CREATE TABLE DEPT_INDEX(
  DEPTNO INT,
  DNAME VARBINARY(20),
  LOC VARBINARY(20),
  INDEX INDEX_DEPTNO(DEPTNO)
);

利用CREATE INDEX创建索引

CREATE INDEX INDEX_DNAME ON DEPT_INDEX(DNAME);

修改表的时候创建索引

ALTER TABLE DEPT_INDEX ADD  INDEX INDEX_LOC(LOC(10));

创...

Read article

JAVA August 19, 2018

泛型

Words count 3.2k Reading time 3 mins.

集合中的元素,可以是任意类型的对象(对象的引用)

如果把某个对象放入集合,则会忽略他的类型,而把它当做Object处理

泛型则是规定了某个集合只可以存放特定类型的对象

并且会在编译期间对进行类型检查

public class TestGeneric {
    //声明带有泛型的List属性
    public List<Course> courses;

    public TestGeneric(){
        //实例化courses
        this.courses = new ArrayList...
Read article

SPRING August 19, 2018

前后端存取Seesion(前端jsp)

Words count 3.7k Reading time 3 mins.

1.前端jsp获取session

<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Enumeration" %><%--
  Created by IntelliJ IDEA.
  User: shirukai
  Date: 2017/10/16
  Time...
Read article

HADOOP August 19, 2018

hive知识点总结

Words count 15k Reading time 14 mins.

创建表的时候设置制表符

create table emp
(empno int,
ename string,
job string,mgr int,
hiredate date, 
sal float,
comm float,
deptno int)
row format delimited fields terminated by ",";

如何查看hive表的制表符?

0: jdbc:hive2://localhost:10000> show create table...
Read article

项目开发记录 August 19, 2018

index页面功能实现说明

Words count 18k Reading time 16 mins.

这个页面有两个表格,分别展示manager列表,主机列表。

manager列表里的功能有:

  1. 展示manger信息包括:manager ip、agent数量、manger状态等
  2. 部署日志详情
  3. 查看当前集群主机列表

所有主机列表的功能有:

  1. 展示主机信息包括:主机地址、所属manager、主机状态等
  2. 主机部署日志
  3. 重新部署
  4. 查看主机配置

1. 展示manager、主机列表信息

这里主要用到的是datatables插件来渲染表格

a 定制后台数据

{
"aaData"...
Read article

环境搭建 August 19, 2018

安装jenkins

Words count 1.3k Reading time 1 mins.

下载yum源

wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo

安装 yum 源

rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key

yum 安装jenkins

yum -y install jenkins

查看 JAVA_HOME

echo $JAVA_HOME 

添加实际的jdk...

Read article

环境搭建 August 19, 2018

centos下安装mysql

Words count 2.4k Reading time 2 mins.

Cenos7默认数据库是mariaDB,所以yum install mysql 会自动安装mariaDB。所以我们要想在centos7下安装mysql,首先要配置mysql的源。

1. 从mysql官网下载 yum repo配置文件

wget http://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm

2. 安装yum repo 文件

rpm -ivh mysql57-community-release-el7-9.noarch...
Read article

VUE August 19, 2018

在vue里引入jquery

Words count 974 Reading time 1 mins.

在项目文件目录下运行如下命令,安装jquery

npm install jquery

修改build/webpack.base.conf.js文件

在开头加入一行代码

 var webpack=require("webpack")

然后在这个文件中的module.exports添加如下代码:

  plugins: [
new webpack.optimize.CommonsChunkPlugin('common.js'),
new webpack.ProvidePlugin...
Read article
Load more
0%