自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(38)
  • 收藏
  • 关注

转载 二维码生成

1 package com.wsc.core.pig; 2 3 import com.google.zxing.BarcodeFormat; 4 import com.google.zxing.EncodeHintType; 5 import com.google.zxing.MultiFormatWriter; 6 import com.google.zxi...

2019-09-07 19:41:00 177

转载 zuul(路由网关)与 Hystrix Dasboard 监控平台搭建

基于eureka 服务于发现 (集群模式) 添加内容1.....zuul 路由网关   zuul 核心就是过滤器 通过过滤器 实现请求过滤 身份校验等  过滤: 对请求的处理过程进行干预  请求路由: 将外部请求转发到具体微服务实例上2.....Zuul 过滤展示 -----------自定义过滤器 ----​    ...

2019-09-02 21:18:00 277

转载 springCloud 的 hystrix(熔断器) 的简单入门

基于eureka 服务于发现 (集群模式)6001 6002 eureka 注册中心 的 熔断器 hystix简单代码入门1..... pom.xml 依赖 jar 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/...

2019-08-30 17:02:00 235

转载 eureka 服务于发现 (集群模式)

1......pom.xml 父类依赖 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan...

2019-08-30 16:15:00 190

转载 Eureka 服务与发现(单机模式)

1...... 概念: Eureka 是Netflix开发的服务发现框架,本身是一个基于REST的服务, 主要用于定位运行在AWS域中的中间层服务,以达到负载均衡和中间层服务故障转移的目的。SpringCloud将它集成在其子项目spring-cloud-netflix中,以实现SpringCloud的服务发现功能。2......

2019-08-28 18:59:00 98

转载 端口号被占用(tomcat,SpringBoot基于端口号不能启动)之解决对策

1.....查看端口号被谁(进程)占用  ----》win + R 键配合打开 dos 命令输入窗口  ----》键入命令:netstat -ano | findstr "端口号" ( 启动时被占用的端口号)  例:80 端口号 ----》键入命令:tasklist | findstr "pid" ...

2019-08-27 19:21:00 342

转载 基于springBoot,,springCloud,mybatis 框架简单 微服开发 ==CRUD

基本结构:父类工程。common工具类。provider提供者。消费者consumer (一般映射地址报错)1...父类工程:需要配置pom.xml文件。  手动指定pom<packaging>pom</packaging>, 1 <?xml version="1.0" encoding="UTF-8"?> 2 &lt...

2019-08-27 18:32:00 141

转载 Failed to determine a suitable driver class(基于SpringBoot框架)

. ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==...

2019-08-27 15:54:00 505

转载 springBoot 的 整合(junit ,mybatis)

1.... pom.xml 依赖jar包 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSche...

2019-08-23 16:10:00 129

转载 了解 yaml文件格式

1....yaml 文件格式:    YAML 是一种简洁的非标记语言。YAML以数据为中心,使用空白,缩进,分行组织数据,从而使得表示更加简洁易读。基本规则 :  大小写敏感      使用缩进表示层级关系      禁止使用tab缩进,只能使用空格键      缩进长度没有限制,只要元素对齐就表示这些元素属于一个层级   ...

2019-08-23 15:10:00 140

转载 com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'test.ac_flight' doesn't exist

1....springBoot运行报错:ycom.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'flight0_.arrival_city' in 'field list' at sun.reflect.NativeConstructorAccessorImpl.newInstance0(...

2019-08-22 18:56:00 284

转载 SpringBoot 简单入门

1...SpringBoot 简单介绍: 设计目的:是用来简化新的spring应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置,从而使开发人员不在需要定义模板化的配置。 特点:1 可以创建独立的spring应用程序,并且基于maven 或 gradle 插件,可以创建可执行的jars和wars。 2 内嵌tomcat或jetty 等...

2019-08-22 18:44:00 232

转载 表与表关联 多对多

1...表与表之间的关系一对一:A B 两张表 A表中的每条的记录对应的B的一条记录   :一对一关系实现方式: 1:使用外键关联    : 场景:使用客户表和客户拓展表    :在属性上 添加一个@OneToOne代表一个对一个的关系 在属性上添加@JoinColumn​ name 存储外键的字段 referencedC...

2019-08-21 21:21:00 574

转载 java.lang.StackOverflowError

一对多查询时报错:StackOverflowError :StackOverflowError在程序栈空间耗尽时抛出,通常是深度递归导致。就是说:方法在调用时,无限成立且循环执行,消耗内存,报错栈内存溢出。在一对多关联表两个对象的toString方法重写之后,应用程序递归太深了,所以发生了堆栈溢出。解决:1....去除一个表中的toString()方法。(这是最简单...

2019-08-21 20:39:00 159

转载 could not execute statement; SQL [n/a]; constraint [null] (多对多表报错不能执行SQL语句)...

多表删除报错:org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationExcepti...

2019-08-21 20:07:00 3358

转载 Jpa实现数据库的CRUD

1....创建步骤:练习使用    1... 创建 maven工程    2...添加依赖 mysql c3p0 hibernate springDataJpa spring相关的包    3...创建 配置文件 员(数据源)工(工程类对象)是(事物)爹(dao 扫描器)    4... 创建实体类    5... 创建dao 接口...

2019-08-20 22:48:00 378

转载 Illegal attempt to map a non collection as a @OneToMany, @ManyToMany or @CollectionOfElements

1...表与表之间的关联:一对一:A B 两张表 A表中的每条的记录对应的B的一条记录   :一对一关系实现方式: 1:使用外键关联    : 场景:使用客户表和客户拓展表    :在属性上 添加一个@OneToOne代表一个对一个的关系 在属性上添加@JoinColumn​ name 存储外键的字段 referenced...

2019-08-20 21:59:00 682

转载 表与表关联 一对多

1...表与表之间的关系一对一:A B 两张表 A表中的每条的记录对应的B的一条记录   :一对一关系实现方式: 1:使用外键关联    : 场景:使用客户表和客户拓展表    :在属性上 添加一个@OneToOne代表一个对一个的关系 在属性上添加@JoinColumn​ name 存储外键的字段 referencedC...

2019-08-20 21:31:00 236

转载 表与表关联 一对一

1...表与表之间的关系一对一:A B 两张表 A表中的每条的记录对应的B的一条记录   :一对一关系实现方式: 1:使用外键关联    : 场景:使用客户表和客户拓展表     :在属性上 添加一个@OneToOne代表一个对一个的关系 在属性上添加@JoinColumn​ name 存储外键的字段 referenced...

2019-08-20 21:00:00 287

转载 spring 框架自带的定时器功能

1...pom.xml 文件配置 1 <dependencies> 2 <dependency> 3 <groupId>junit</groupId> 4 <artifactId>junit</artifactId> 5 <version&g...

2019-08-18 12:43:00 449

转载 security框架 配置文件

1...spring_security.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans xmlns="http://www.springframework.org/schema/beans" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema...

2019-08-16 17:31:00 104

转载 pom.xml 引入 jar包

1...pom.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4...

2019-08-16 17:11:00 213

转载 jsp 界面上传单个文件

1...pom.xml1 <dependency>2 <groupId>commons-fileupload</groupId>3 <artifactId>commons-fileupload</artifactId>4 <version&...

2019-08-16 17:01:00 80

转载 spring-mybatis 结合 配置文件 及 简单 test

1...pom.xml 配置文件 1 <?xml version="1.0" encoding="UTF-8"?> 2 3 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 ...

2019-08-16 16:32:00 142

转载 sprig 的配置文件 及 简单 test

1...pom.xml 配置文件 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...

2019-08-16 16:10:00 75

转载 mybatis (2) 的配置文件 及 简单的 test

1...pom.xml 配置文件 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...

2019-08-16 15:57:00 81

转载 mybatis 的 配置文件及简单test

1... sqlMapperConfig.xml (配置:数据源 和 映射文件 ) 1 <?xml version="1.0" encoding="UTF-8" ?> 2 <!DOCTYPE configuration 3 PUBLIC "-//mybatis.org//DTD Config 3.0//EN" 4 ...

2019-08-16 15:38:00 128

转载 springDateJpa 的 CRUD

1...pom.xml 文件配置 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc...

2019-08-16 14:53:00 100

转载 分布式开发下 查看zookeeper提供与消费者状态

1...百度网盘https://pan.baidu.com/s/1eotBWoyhlszMr5sOw0BDeA 提取码:k3ca2....分布式开发下基本用法Linux 下的注册中心 zookeeper 查看 提供者与消费者进入Linux 中 tomcat 下 ------》 将dubbo.war解压到 webapps ------> 然后进入tom...

2019-08-15 19:58:00 179

转载 domain.groovy 自动生成 pojo文件夹下的实体类java代码

1...首先 创建数据库 连接 :view ---->Tool windows ----> Database 或 idea 右侧栏 Database ----> + 号 创建 数据库连接 (Driver : MySQL for 5.1) 用户名 密码 数据库名 ----->test Connection ------->ok2...需要先...

2019-08-15 18:38:00 215

转载 spring-DATA-JPA的 CRUD(增删盖该查) 和 JPQL查询

1...POM.XML文件的配置 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...

2019-08-15 16:31:00 118

转载 java.lang.IllegalStateException: Failed to load ApplicationContext

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'com.alibaba.dubbo.config.RegistryConfig' defined in null: Could not resolve placehold...

2019-08-14 20:46:00 441

转载 generator idea自动生成pojo ------- 配置文件

1....generator 安装包https://pan.baidu.com/s/1jDkJxijMdHkn6m3YasKiuw 提取码:cifj2...下载并解压到本地,idea打开为一级目录(注:不要创建工程,一级目录为:generator)3...修改 generatorConfig.xml 配置文件:<!--数据库连接的信息:驱动...

2019-08-14 19:04:00 272

转载 log4j2.xml ------配置文件

log4j2日志输出益处:西橡胶与 log4j 易于读取日志输出内容,且不需要保存到日志文件夹中,节约内存空间!!!1.....pom.xml 需要导入的jar包: 1 <!--日志--> 2 <dependency> 3 <groupId>log4j</groupId>...

2019-08-14 16:17:00 74

转载 log4j.properties -----文件配置信息

1....在resources下添加:new -----> file ------> log4j.properties 1 # Set root category priority to INFO and its only appender to CONSOLE. 2 #log4j.rootCategory=INFO, CONSOLE ...

2019-08-14 15:50:00 110

转载 严重: Exception sending context initialized event to listener instance of class org.springframework.we...

1 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener2 org.springframework.beans.factory.BeanCreationException:...

2019-08-14 15:36:00 724

转载 SpringDataJPA-----配置文件

1....maven下的pom.xml配置文件:pom.xml2....resources下的META-INF下的persistence.xml(注意:此为分层切文件名字默认,不许更改) 1 <?xml version="1.0" encoding="UTF-8"?> 2 <persistence xmlns="http://java.sun.c...

2019-08-14 14:57:00 173

转载 idea控制台运行tomcat,报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderLi...

严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerjava.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener...

2019-08-11 13:31:00 274

空空如也

空空如也

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

TA关注的人

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