- 博客(45)
- 资源 (6)
- 收藏
- 关注
原创 Docker镜像悄悄地就更新了--jdk8-openjdk-slim
代码没改多少重新打包发布请求也能打进去可是返回的总是 404,还不报错,日志也没有错误信息都快疯了。。。疯了两个小时后。。。觉得自己没有问题,那就是第三方有问题。于是对 镜像文件产生了怀疑。版本号升级了。。。吃一堑长一智,以后用官方镜像,一定要带着版本号...
2021-09-04 15:25:17
1722
原创 * ./cptable in ./node_modules/xlsx-style/dist/cpexcel.js
* ./cptable in ./node_modules/xlsx-style/dist/cpexcel.jsvue.config.js中如此这般修改const CompressionPlugin = require("compression-webpack-plugin")module.exports = { publicPath: process.env.NODE_ENV === 'production' ? '/' : '/', configureWebpack: ()
2020-07-10 13:40:41
6399
2
原创 An invalid character [32] was present in the Cookie value
代码中突然出现了问题An invalid character [32] was present in the Cookie valueCookie中出现了空格。将空格替换掉就可以了
2020-06-20 08:13:49
243
原创 本地搭建kafka
很单纯的下载文件http://kafka.apache.org/downloads将下载的文件解压到你喜欢的目录。你会看到在解压的目录中有着zookeeper的身影。相应的配置文件让我们来到bin目录,先从启动zookeeper开始。启动kafkaBroker:kafka集群的服务器被称为Broker Topic:逻辑层面类似于RabbitMQ的Queue队列,是必须的。可能在多个服务器上(Broker),也可能在多个分区(Partition) Partiti
2020-06-19 15:13:00
789
原创 eclipse-springboot-kotlin
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target'springboot语言选择了,kotlin,然后项目就给了我点颜色看看。有种出师未捷身先死的感觉。ecli...
2020-04-07 12:40:45
312
原创 Ant-Design-Vue table columns不要写在export 以外
下面是一个失败的例子const columns = [ { title: 'Name', dataIndex: 'name' }, { title: 'City', dataIndex: 'city', customRender: (text, row, index) => { var obj = ...
2020-04-02 13:19:24
1419
原创 Jpa @Query nativeQuery=true
"message":"Noconverterfoundcapableofconvertingfromtype[org.springframework.data.jpa.repository.query.AbstractJpaQuery$TupleConverter$TupleBackedMap]totype[com.cocabit.jwtdemo.vo.StudentVo]...
2020-04-01 16:50:28
6741
1
原创 SpringBoot+Postman+Axios
Get最简单的get@GetMapping("/get1")public String get1() { return "hello world";}传参数的get@GetMapping("/get2")public String get2(String world) { return "hello" + world;}// @RequestParam@GetM...
2020-04-01 13:07:04
366
原创 Ant-Design-Vue table 合并单元格,并且添加点击事件
点击行,有一个customRow。可以配置点击事件。单元格的自定义分为两种方式。一种是:通过template标签。//// html部分// text为dataIndex中的值,data为行数据,index为索引值<template slot="xxx" slot-scope="text,data,index"> {{text|xxxFormat}}<...
2020-03-05 13:49:10
8567
13
原创 Centos安装Postgresql(yum安装方式)
1.保证服务器上已经有yum工具2.Postgresql安装地址https://www.postgresql.org/download/linux/redhat/3.可以通过选择版本获取提示信息4.安装的postgresql默认创建一个无密码的postgressudo -i -u postgrespsql -l5.查看端口,防火墙开放端口netst...
2020-02-27 13:04:18
335
原创 Redis安装
1.文件解压安装方式wget http://download.redis.io/releases/redis-5.0.7.tar.gztar xzf redis-5.0.7.tar.gzcd redis-5.0.7make启动redissrc/redis-server例如:将redis-5.0.7解压在/usr/local/下,那么此刻你应该是在/usr/local/re...
2020-02-13 11:30:05
113
原创 SpringSecurity(获取登录用户的权限)
利用SecurityContextHolder@GetMapping("/hello")public Object hello() { return SecurityContextHolder.getContext().getAuthentication();}利用Authentication@GetMapping("/hello")public Object h...
2020-02-12 09:55:58
2060
原创 RESTful API 拦截(过滤器,拦截器,切片
Filter:只能拿到http请求的一些响应import javax.servlet.Filter;@Componentpublic class TimeFilter implements Filter{ @Override public void doFilter(ServletRequest request, ServletResponse response, Filter...
2020-01-07 17:01:08
584
原创 玩转Spring全家桶学习笔记(04编写你的第一个Spring程序)
第一遍看视频,关于知识点的漏网之鱼。。1.SpringBoot项目新建视频中介绍通过https://start.spring.io/网址进行新建项目。很显然,网站的更新速度很快,已经不是视频中的模样了。我一直习惯用Eclipse直接创建项目,因为,可以随时进行修改引用的包。对于自带的maven包,可以随时通过 右击 pom文件进行添加删除。2.对于maven...
2019-08-05 21:54:51
222
原创 vue mode:history tomcat(个人用)
<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.o...
2019-08-01 15:00:44
431
原创 vscode代码格式化配置(个人用)
{ "editor.renderControlCharacters": true, "editor.renderWhitespace": "all", "window.zoomLevel": 1, "vetur.format.defaultFormatterOptions": { "js-beautify-html": { ...
2019-07-30 09:14:05
1627
原创 iView Select多选控制选择数量
// html<Select multiple @input="limitcount"> <Option v-for="item in list" :value="item.value">{{item.text}}</Option></Select>// jslimit(e) { if (e.length > 10)...
2019-07-12 13:58:11
2613
1
原创 玩转Spring全家桶学习笔记(07、08那些好用的连接池们)
●HikariCPSpring Boot 2.x默认使⽤ HikariCP 配置 spring.datasource.hikari.* 配置Spring Boot 1.x默认使⽤ Tomcat 连接池,需要移除 tomcat-jdbc 依赖 spring.datasource.type=com.zaxxer.hikari.HikariDataSource●Alibaba Dru...
2019-02-22 16:11:50
970
原创 玩转Spring全家桶学习笔记(06如何配置多数据源)
application.properties文件配置foo.datasource.url=jdbc:h2:mem:foofoo.datasource.username=safoo.datasource.password=bar.datasource.url=jdbc:h2:mem:barbar.datasource.username=sabar.datasource.passwo...
2019-02-21 16:57:58
750
原创 玩转Spring全家桶学习笔记(05如何配置单数据源)
SpringBoot生成时默认的启动类--类1package com.cocabit.spring;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplication...
2019-02-16 15:34:53
972
1
原创 Docker-Jenkins(二GitLab配置篇)
插件准备 系统管理->插件管理GitLab,Publish Over SSH,有的时候,被提供的插件跟你Jenkins的版本并不匹配,就像这样不要担心,你可以下载个别的版本,然后通过 插件管理->高级 手动上传相应的插件就像酱紫系统管理->系统设置GitLabname,url比较好理解,这里着重说一下 Credentials这里要...
2019-01-11 12:37:20
461
原创 Docker-Jenkins(一安装篇)
利用官方Jenkins镜像一键部署Jenkins服务docker run -p 8080:8080 -p 50000:50000 jenkins然后就嘟嘟嘟的执行了,然后就不动弹了。。此时,你不应该继续看着这个页面发呆,而是应该打开你的浏览器,等待之后继续,出现安装插件的页面。click之后,进行安装等待不如意者十之七八,总有那么几个安装失败的插件,不过不要担心,因为...
2019-01-11 09:52:48
130
原创 新人如何快速进入企业Web开发_Html+CSS(Bootstrap)
所谓的Web应用,就是大家平常所看到的各种网站。而Html+CSS就是相当于一个结构+装饰。并不是只有所谓的前端工程师才有必要掌握,大家都要了解一下嘛,毕竟是脸面的问题。Html+CSS语法呢很多,这只是个基础技能。你掌握了这个技能,也不一定能设计出一个好看的网站。这有点令人沮丧。。BootStrap就是来拯救沮丧的。BootStrap 就是它bootstrap三大部分(只写了部分...
2018-10-16 13:22:18
259
原创 java.lang.NoClassDefFoundError: org/apache/tomcat/util/codec/binary/Base64
用POI在处理Excel,涉及到图片的处理,使用到了Base64import org.apache.tomcat.util.codec.binary.Base64;Base64 base64 = new Base64();byte[] imgByte = base64.decode(picString.substring("data:image/jpeg;base64,".length...
2018-09-13 09:07:42
7714
6
原创 jQuery下载文件 post(后台都写好了)
<iframe src="" id="downfile" name="downfile" style="display:none;"></iframe>var $iframe = $('#downfile');var $form = $('<form target="downfile" method="post"
2018-09-12 13:22:23
4521
原创 angular cli
Schematic input does not validate against the Schema: {"name":"angular_ng","version":"6.1.3","newProjectRoot":"projects","skipInstall":false,"linkCli":false,"skipGit&quo
2018-08-13 10:28:30
1164
原创 npm Permissions
The operation was rejected by your operating system.It is likely you do not have the permissions to access this file as the current userhttps://docs.npmjs.com/getting-started/fixing-npm-permissi...
2018-08-11 17:29:50
1376
原创 Spring Boot之JPA杂记Inner Join
只为了实现一个很简单的操作:select t1.id,t1.studentname,t2.gradenamefrom student t1inner join grade t2on t1.gradeid=t2.id先创建了两个Entity@Entitypublic class Grade { @Id @GeneratedValue private Long id; private ...
2018-03-15 15:08:33
12672
原创 Exception processing template "xxx": Exception parsing document: template="xxx"
问题:Exception processing template "xxx": Exception parsing document: template="xxx"org.xml.sax.SAXParseException:分析:・ <→&lt;・ &→&amp;参考:点击打开链接解决方案:/*<![CDATA[*/...//your code here....
2018-02-28 10:41:29
6212
原创 Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler d
问题:ERROR 3900 --- [nio-8080-exec-7] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; neste...
2018-02-24 07:58:12
30319
1
原创 disable the 'org.eclipse.recommenders.completion.rcp' plug-in
问题:To avoid this message,disable the 'org.eclipse.recommenders.completion.rcp'plug-in or disable the 'Java Proposals(Code Recommenders)'category on the content assist preference page.解决方案:1.点击链接 conte...
2018-02-24 07:57:55
4781
3
原创 Extjs4.1API解读之误导篇(MVC)
前言,了解一门技术就要知道他的开发手法,如此才能更好的利用它。API提供了MVC的写法,本着好学生的心态,照着敲敲代码,结果是各种纠结呀。。。提供给英语不太好的被别人翻译好的地址,如下:http://www.cnblogs.com/shukefrz/articles/2322521.htmlhttp://www.cnblogs.com/shukefrz/archive/2012/0
2012-09-07 13:13:59
1384
原创 Extjs4.0学习笔记(c#.net页面生成json)
extjs4.0的API上有无尽的讲法,无尽的例子,可是也没有给个.net的例子。怎样从数据库中取出数据形成json字符串然后进行绑定呢。让我无尽纠结。不知所措的各种错误,各种工期临近。。。Ext.onReady(function () {Ext.define('User', { extend: 'Ext.data.Model', fields: [
2011-12-01 13:36:42
1834
原创 Extjs4.0学习笔记(文件引用)
Extjs4.0比以往有些变化,用起来麻烦不小。所以用笔记记一下。与以前的引入三个文件不同,现在的4.0只要引用两个文件就行了。 bootstrap.js里面对必要的js代码做了调用,感兴趣的可以看下。不感兴趣的知道怎么用就行了。简单测试实例,依旧Hello World!Ext.onReady(function () { Ext.MessageBox.alert(
2011-11-30 12:51:52
976
原创 JS动态生成的那些事
本来习惯用.net的控件拖拖拖的,最近发现js也很灵活,于是就向js靠拢,可是,期间心酸经历呀,一把鼻涕一把泪的……一、JS动态生成radio思路太清晰不过了,无非链接数据库,来个从头到尾加加加。.net 中有radiolist,如果直接用js生成的话,如何也有这种r
2011-09-29 09:27:11
941
原创 水晶报表应用 之 一页打印三张票据
我唯一能做的只有站在巨人的肩膀上眺望。首先向共享了很多水晶报表资源的 阿泰 前辈致敬,及其所有无私的大神们。参照:【水晶报表实例应用】一页分上下两部分列印其实我分享的属于自己的只有活学活用而已,如果有幸对谁有所帮助此乃我之幸事。本着能省即省的原则,我“详细”只用到
2011-09-22 13:52:35
1102
js-xlsx向excel添加image
2018-09-06
extjs4.07自动提示 sdk.jsb3
2011-12-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人