- 博客(32)
- 收藏
- 关注
原创 ubuntu 安装配置 MySQL 5.7
更新apt源sudo apt update安装MySQL 5.7sudo apt install mysql-server-5.7配置mysql root用户 密码sudo mysql_secure_installation#1VALIDATE PASSWORD PLUGIN can be used to test passwords...Press y|Y fo...
2020-04-25 14:49:33
291
1
原创 ubuntu 安装maven
maven 安装下载maven 官网下载地址解压tar -zxvf apache-maven-3.6.3-bin.tar.gz -C /opt修改全局环境变量sudo gedit /etc/profileexport M2_HOME=/opt/maven/apache-maven-3.5.0export CLASSPATH=$CLASSPATH:$M2_HOME/lib...
2020-04-25 14:09:44
372
原创 ubuntu 安装 OracleJDK8
安装Oracle JDK 8ORACLE 官网下载JDK 地址下载tar.gz 包解压tar -zxvf jdk-8u251-linux-x64.tar.gz -C /opt修改全局配置文件sudo vim /etc/profile#set oracle jdk environmentexport JAVA_HOME=/opt/jdk1.8.0_251expo...
2020-04-25 13:31:40
1452
原创 ubuntu 安装必做
更换国内源阿里云ubuntu源更换/home 目录下英文 ——>中文打开终端,在终端中输入命令: export LANG=en_US xdg-user-dirs-gtk-update 跳出对话框询问是否将目录转化为英文路径,同意并关闭.在终端中输入命令: export LANG=zh_CN关闭终端,并重起.下次进入...
2020-04-25 13:06:35
164
原创 springmvc
spring-webmvcweb.xmldispatcherServlet<servlet> name class <init-param> key conlocation value classpath:springmvc.xml </init-param> loadon 1</servlet><servlet-m...
2020-04-18 01:37:47
91
原创 spring aop
代理增强spring-aop切入点连接点通知切面表达式表达式public void com.atguigu.service.HelloService.test(int,)访问修饰符省略void *com.atguigu.service*…HelloService *test *.(int) *全通配表达式….()配置方式纯注解配置@EnableAs...
2020-04-17 20:43:40
96
原创 多线程入门
进程和线程并发和并行创建线程方式继承thread实现runnable实现callablenew Thread(new FutureTask<String>(new Callable<String>(){ @override public String call(){ //代码 return ""; }}))加锁方式同步代码块Objec...
2020-04-14 01:30:21
76
原创 spring ioc
ioc 引入目的解耦控制反转a = new obj => context.getbean()将创建bean交给ioc容器applicationContext.xmlRootConfig.class入门<bean id = “” class = >容器有如mapid 为 key class 为 valuenew ClassPathXmlApplication...
2020-04-13 01:49:14
87
原创 io
io字符串转字节数组string.getBytes()string.getBytes(“utf-8”)字节数组转字符串new string(byte[])new string(byte[],int offset,int len)输出void write(byte)void write(bytes[])输入int read() 返回读取结果 结尾返回-1int read(by...
2020-04-01 23:09:52
95
原创 项目笔记
webmvcconfigureadapter||springmvc.xmlhandlerInterceptor自定义beanuserVo(userToken)videoVo(faceImagenickName)自定义mapperVideoMapperCustom//首页视频列表展示queryAllVideo(@param(“videoDesc” String videoD...
2020-03-31 17:28:44
90
原创 项目开发记录3 Security结合数据库认证
选择依赖websql drivermybatis锁定数据库版本5.1.27加入druid-spring-boot-starter依赖1.1.10配置数据库信息application.properties设置xml打包下 src/main/java ...
2020-03-24 17:31:53
83
原创 项目开发记录1 服务器端环境搭建
导入数据库创建springboot项目(spring-web spring-security mysql-drivermybatis-frameword)锁定mysql版本加入druid连接池逆向工程生成model mapper加入mapperscan构建打包包括xml<resources> <resource> ...
2020-03-23 15:14:45
91
原创 vue-cli使用
安装vue-clinpm install @vue/cli -g安装vue-cli 旧版npm install @vue/cli-init -g使用脚手架创建项目vue create my-project图形化创建vue ui创建旧版2.x项目vue init webpack my-project...
2020-03-22 14:30:24
94
原创 webpack 学习
1初始化目录 自动生成package.jsonnpm init -y安装webpacknpm i webpack webpack-cli -D创建webpack.config.jsmodule.exports = { mode:"development"}修改package.jsonscript 下新增“dev”:“webpack”执行 npm run dev将自动生成...
2020-03-21 13:09:45
84
原创 es6模块化
默认导出export default{ a,b,c,show}默认导入import 自定义名称 from './m1';按需导出export let a = 1;export function show(){}按需导入import {a,show} from './index'直接执行for(var i = 1;i < 10; i ++){i+=i};c...
2020-03-21 02:43:53
67
原创 Vue 自定义过滤器
自定义过滤器Vue.filter(“过滤器名称”,function(value){})过滤器用法{{msg | filter}}Vue.filter("filter1",function (value) { return value.charAt(0).toUpperCase()+value.slice(1); }) new Vue({ ...
2020-03-19 15:42:33
104
原创 Vue组件
Vue.component("button-counter",{ data:function(){ return{ count:0 } } template:'<button @click = "count++">{{count}}</button>'})new Vue({ el:"#app"})<div id = "app">...
2020-03-19 15:29:34
81
原创 Vue指令 数据属性样式事件绑定 分支循环
数据绑定{{}}v-text文本绑定v-html 标签绑定v-model 双向绑定属性绑定v-bind:class=""简写:class=""样式绑定class对象形式:class=“obj”data:{obj:{obj1:true,obj2:false}}数组形式:class=“classes”data:{classes:[“class1”,“clas...
2020-03-19 13:38:45
127
原创 Vue 实例成员:属性 方法 计算 侦听
<div>{{method()}}</div><div>{{method()}}</div><div>{{computed1}}</div><div>{{computed1}}</div>data:{ score:10},methods:{ method:function(){ c...
2020-03-19 01:41:05
86
原创 堆排序
package tree;import java.util.Arrays;public class SortTree { public static void main(String[] args) { int[] arr = { 5, 4, 3, 2, 1 }; for (int i =arr.length /2 - 1; i >= 0; i--) { ...
2020-03-17 02:17:51
68
原创 线索化二叉树 及线索化遍历
package tree.threadBinaryTree;public class ThreadBinaryTree { Node root; Node pre; public ThreadBinaryTree(Node root) { this.root = root; }//线索化遍历 public void tereadedList() { Node curre...
2020-03-17 02:17:13
133
原创 顺序存储二叉树
顺序存储二叉树概念:1.通常只考虑完全二叉树2.第n个元素左子节点为2n+13.第n个元素右子节点为2n+24.第n个元素父节点为(n-1)/2顺序存储二叉树遍历public class ArrayBinaryTree{ public static void main(String[] args) { int[] a = {1,2,3,4,5,6,7}; ArrayBinar...
2020-03-16 22:22:12
57
原创 二叉树前序遍历查找删除
public class BinaryTree { Node root; public BinaryTree(Node root) { this.root = root; } public int preDel(int data) { if (this.root == null) { throw new RuntimeException("空树不能删除"); }...
2020-03-16 14:56:06
113
原创 回溯法 迷宫问题八皇后
迷宫问题public class Migong { public static void main(String[] args) { int[][] a = new int[8][7]; for (int i = 0; i < a.length; i++) { a[i][0] = 1; int j; for (j = 0; j < a[i].length;...
2020-03-16 11:02:04
138
原创 递归分治二分查找斐波那契汉诺塔
二分查找pubiic static void binarySearch(int[]a ,int low,int high,int value){ if(low > high) return; int mid = (low + high) / 2; int pivot = a[mid]; if(value > pivot) return (a,mid+1,high,val...
2020-03-16 10:58:24
55
原创 哈希表Java实现
public class HashTableDemo { public static void main(String[] args) { LinkedListArray hashListArray = new LinkedListArray(2); String key = ""; Scanner scanner = new Scanner(System.in); while ...
2020-03-15 17:55:05
94
原创 单链表双链表循环链表Java实现
头指针单链表public class LinkedList { Node head; public static void main(String[] args) { LinkedList linkedList = new LinkedList(); linkedList.addAtRear(2); linkedList.addAtFront(1); linkedList.s...
2020-03-14 21:24:43
250
原创 栈Java实现
public class Stack { int[]a; int maxSize; int top; public static void main(String[] args) { Stack stack = new Stack(3); stack.add(1); stack.add(2); stack.add(3); stack.showAll(); sta...
2020-03-14 17:42:30
56
原创 队列循环队列Java实现
队列约定:front 指向队头前一位置rear 指向队尾从-1出发队列长度未maxSizepublic class Queue { int[]a; int maxSize; int front; int rear; public static void main(String[] args) { Queue queue = new Queue(3); queue.ad...
2020-03-14 17:33:59
142
原创 常见排序Java实现
常见排序冒泡排序public void bubbleSort(int[] a){ for(int i = 0;i < a.length - 1;i++){ for(int j = 0;j < a.length - 1 - i;j++){ if(a[j] > a[j+1]) swap; } syso(Arrays.toString(a)); }}...
2020-03-14 11:31:03
65
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人