自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 资源 (1)
  • 收藏
  • 关注

原创 PostgreSQL安装 Error running icacls

路径名称不能有中文的原因:电脑名称为中文用户名为中文其他中文问题重点:改改改改了 就能跑

2020-09-05 23:38:16 1363 1

原创 Software Testing 03 - Coverage-Based Testing 基于覆盖的测试

Coverage-Based Testing 基于覆盖的测试学习关键:1.Select test inputs for a program based on its control-flow graph, using the various control-flow coveragecriteria.根据不同的控制流覆盖标准: 提供控制流图,选择测试用例。2.Identify when a variable in a program is defined, referenced, and unde

2020-08-28 02:03:27 716

原创 Software Testing 02 - Boundary-Value Analysis

1、computational faults and boundary shifts2、Definition:(i) A path condition is the condition that must be satisfied by the input data for that path to beexecuted.(ii) A domain is the set of input data satisfying a path condition.(iii) A domain boundar

2020-08-16 22:40:02 183

原创 Software Testing 02 - Input Partitioning

Test input selection: selecting the values in this domain that have the highest likelihood of producing failuresEquivalence Classes: a set of values from the input domain that are considered to be as likely as each other to produce failures for a program

2020-08-16 21:51:51 151

原创 Software Testing 01 - Overview

软件管理 - 控制软件构建过程软件测试 - 控制质量质量通常参考以下指标:正确性、完整性、一致性、安全性、可靠性、性能、可用性、可拓展性、生存性。正确性: 是否按照用户需求内容设计完整性: 是否交涉所有需求一致性: 是否交付一致结果1.软件测试的目的主要目的为以下两点:Validation:检查是否构建正确的系统 (注重结果)verification:检查是否正确地构建系统 (注重过程)2.软件测试的有用性3.如何进行软件测试4.区分错误和失败5.指定程序的输入域...

2020-08-15 14:52:49 146

原创 Andriod Studio 报错 -- SDK emulator directory is missing

报错:解决方式:可以自己下载AndriodSDK这是个下载地址编辑AndriodSDK location到下载的SDK路径就可以了

2020-08-07 13:36:03 4185

原创 MyBatis 04 -mybatis-config.xml

1.环境配置:每个SqlSeesionFactory实例只能选择一种环境MyBatis默认事务管理器是JDBC,连接池:POOLED2.引入并使用外部文件的properties <properties resource="db.properties"/> <environments default="development"> <environment id="development"> &l

2020-08-02 19:53:34 78

原创 MyBatis 03 - 模糊查询

1.编写接口 List<User> getUserLike(String value);2.编写sql语句<select id="getUserLike" resultType="com.qq.entity.User"> select * from user where name like #{value}</select>3.测试 @org.junit.Test public void getUserLike(){

2020-08-02 18:19:44 84

原创 MyBatis 02 - CRUD的实现

namespace设置包名,需要与mapper接口的包名一致<mapper namespace="com.qq.mapper.UserMapper">id:对应包名中的方法resultType:对应Sql语句执行的返回值parameterType:参数类型1.select <select id="getUserById" resultType="com.qq.entity.User" parameterType="int"> select * from.

2020-08-02 16:36:36 71

原创 MyBatis 01 - 使用流程

mybatis

2020-07-31 16:10:28 59

原创 Spring 14 - Spring实现AOP流程 - 方法三:使用注解实现AOP

流程:1.标记切面@Aspect2.标记通知类型和切入点4.标记@Component,注册bean例:package com.spring.qq.diy;//使用注解方式实现aopimport org.aspectj.lang.annotation.After;import org.aspectj.lang.annotation.Aspect;import org.aspectj.lang.annotation.Before;import org.springframework.st

2020-07-30 14:46:25 71

原创 Spring 13 - Spring配置AOP的切入点表达式execution()

execution()分为五个部分:例:<aop:pointcut id="beforePointCut" expression="execution(* com.spring.qq.service.UserServiceImpl.*(..))"/>例:expression="execution(* com.spring.qq.service.UserServiceImpl.*(..))"execution()分为五个部分:1.execution():表达式主体2.第一个 *

2020-07-30 14:14:26 243

原创 Spring 12 - Spring实现AOP流程 - 方法二:自定义类实现AOP

流程:1.创建自定义的 切入类(切面)2.注册自定义切入类的bean3.配置切面包括切入点和 通知(方法)4.测试具体如下:1.创建自定义的 切入类(切面)package com.spring.qq.diy;public class DiyPointCut { public void before(){ System.out.println("-----------before--------------"); } public void aft

2020-07-30 14:14:00 110

原创 Spring 11 - Spring实现AOP流程 - 方法一:使用Spring的API接口

1.导入依赖包 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.2.6.RELEASE</version> </dependency>

2020-07-30 13:33:03 127

原创 Spring 10 - 动态代理模式

动态代理的分类1.基于接口的动态代理1.1.JDK动态代理2.基于类的动态代理2.1.cglib2.2.Java字节码JAVAssist - 开源的Java字节码的类库实现流程:1.创建实现接口InvocationHandler的动态代理类package com.qq.study1;import java.lang.reflect.InvocationHandler;import java.lang.reflect.Method;public class ProxyInvocat

2020-07-29 20:24:15 53

原创 Spring 09 - 静态代理模式

1.概念代理角色获取并管理真实角色的事务, 与外界进行协调处理。武则天 代理 唐高宗 管理朝政1.1.角色分析抽象角色: 接口或者抽象类真实角色:被代理角色代理角色:负责代理真实角色客户角色:访问代理对象1.2 房东-中介-客户中介代理房东租房给客户package com.qq.study;public class Client { public static void main(String[] args) { Landlord landlord = new

2020-07-28 14:15:36 58

原创 Spring 08 - 使用JavaConfig实现配置

1.JavaConfig.java1.1.创建JavaConfig.java1.2.添加@Configuration到类上方,类似于beans标签功能1.3.添加@Bean到涵盖new的方法上代码:package com.qq.test5;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;@Configuration

2020-07-28 12:46:37 78

原创 Spring 07 - 注解使用流程

1.xml文件配置(1) 定义要扫描的包 package=“com.qq.test4”(2) 开启注解:context:annotation-config/xml文件完整内容:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan

2020-07-27 15:48:31 58

原创 Spring 06 - Bean的自动装配(配置文件,注解)。

1.含义:自动寻找bean对象进行装配2.自动装配方式2.1 配置文件2.1.1 byName在容器上下文中查找与set方法后面的内容相同的id的bean对象(bean的id需要唯一)<bean id="person" class="com.qq.test3.Person" autowire="byName"> <property name="name" value="CXK"/></bean>2.1.2 byType在容器上下文中查找与属性类

2020-07-27 15:17:00 151

原创 Spring 05 - Scope

1.bean作用域的单例模式 (默认机制) <bean id="address" class="com.qq.Address" scope="singleton"> <property name= "addr" value="Melbourne"/> </bean>2.原型模式 <bean id="address" class="com.qq.Address" scope="prototype"> &

2020-07-27 14:16:24 59

原创 Spring 04 - 对象取别名、import、各种类型的属性值依赖注入、命名空间(p,c)注入

对象取别名1.1 testSpring 取别名 testSpring0 <alias name="testSpring" alias="testSpring0"/>1.2 testSpring 取别名 testSpring00 <bean id="testSpring" class="TestSpring" name="testSpring00"> <property name="name" value="hello Spring"/&.

2020-07-27 14:03:18 316

原创 word2vec构造词向量

接wiki数据处理章1.我曾经把从wiki下载下来的压缩包解压缩过,大概7个g左右,经过处理后,txt文件1个g左右。直接文本编辑器是打不开的,可以用python进行一行展示:...

2020-07-26 20:03:09 87

原创 Spring 03 - 创建对象的方式

创建对象的方式:1.无参构造 <bean id="testSpring" class="TestSpring"> <property name="name" value="hello Spring"/> </bean>2.有参构造(1)下标匹配参数 <bean id="testSpring" class="TestSpring"> <constructor-arg index="0" val

2020-07-26 19:59:35 46

原创 Spring 02 - IOC概念

IOC- Inversion of Control控制:对 实例(对象)创建 的控制反转:创建对象的任务: 程序:new 对象 -------> Spring 控制.程序控制创建对象 ----> Spring控制创建对象作用:解耦合,避免修改程序代码;创建对象由Spring的xml文件控制。...

2020-07-26 19:21:17 50

原创 Spring 01 - 使用入门

1.创建maven项目2.添加Spring的依赖包 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.2.6.RELEASE</version> </depend

2020-07-26 19:04:13 53

原创 wiki数据处理

1.在https://dumps.wikimedia.org/zhwiki/20190501/下载数据,数据包的名字为:zhwiki-20190501-pages-articles.xml.bz2 1.6g,2.对数据进行预处理,下载好后不需要解压缩(1)数据为xml格式,编写脚本进行处理,这里给出一个脚本处理文件。https://pan.baidu.com/s/1Z2iX4mlohosa...

2019-05-17 14:38:28 1074

原创 tf-idf概念

什么是tf-idf:tf:trem frequency,词条频率,指的是某个词在文章中的出现次数/该文章所有字词的出现次数总和。idf指的是:inverse document frequency,逆文档频率,指的是log(语料库的文档总数/(包含该词的文档数+1))。概念:对区别文档最有意义的词语应该是那些在文档中出现频率高,而在整个文档集合的其他文档中出现频率少的词语。...

2019-05-16 13:53:23 143

原创 python使用jieba实现tf-idf

具体代码:在这里插入代码片

2019-05-16 13:42:35 1869 1

原创 sublime配置Python环境

1.下载sublime2.下载python,python默认路径:“cmd”:[“C:/Users/Shirley/AppData/Local/Programs/Python/Python37/python.exe”,"-u","$file"],Shirley为我的账户名称.windows系统查找文件不是很方便,没有whereis XXX 命令。我忘记python的安装目录,在cmd输...

2019-05-16 10:41:20 1642

r语言的文本分析

大数据学习,r语言进行文本分析, k-means分类聚合。

2017-12-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除