- 博客(14)
- 资源 (3)
- 收藏
- 关注
原创 Mysql8登录用户名正确报ERROR 1045 或 SQLyog报错plugin caching_sha2_password could not be loaded
Mysql8安装问题CMD下利用mysql -uroot -p 登录时,密码正确切设置允许远程,仍报错 ERROR 1045(280000):Access denied for user 'root'@'XXXXXXX'可能是caching_sha2_password plugin造成的。此时可以尝试用SQLyog连接测,如果试报plugin caching_s...
2019-08-30 15:42:18 1539 1
原创 Spring Bootl两种注解方式
springboot扫描注解配置方式:1、@Configuration @EnableAutoConfiguration @ComponentScan2、@SpringBootApplication方式2总@SpringBootApplication等价于@Configuration + @EnableAutoConfiguration + @ComponentS...
2018-10-19 09:32:13 377
原创 宿主机复制文件到docker容器(centos)
Centos拷贝文件到Docker查看docker信息: docker ps 宿主机拷贝文件到docker docker cp 宿主机文件路径 镜像名称:镜像中文件存放路径 ...
2018-08-17 16:53:34 7627 1
原创 Spring MVC 数据绑定-对象数组
Model:public class TestInfo implements Serializable { private String id; private String name; public TestInfo() { } public TestInfo(String id, String name) { this.id ...
2018-08-15 14:57:40 434
原创 Spring MVC 数据绑定 - 数组
Controller:@RequestMapping(value = "/t1",method = RequestMethod.POST)@ResponseBodypublic List<String> createUnitGroup(HttpServletRequest request, HttpServletResponse response, ...
2018-08-15 14:49:48 185
原创 Spring MVCb数据绑定-简单对象
说明:当Ajax以application/x-www-form-urlencoded格式上传即使用JSON对象,后台需要使用@RequestParam 或者Servlet获取。 当Ajax以application/json格式上传即使用JSON字符串,后台需要使用@RquestBody获取。Spring MVC转换配置:方式一、application/x-www-form-urlenc...
2018-08-15 14:47:00 167
原创 Spring Aop 执行两次原因(1)
原因(1): 切面bean重复定义 类中使用了@Component的同时又在springmvc.xml中配置了<bean id="log**" class="com.demo.log.**Aspect"></bean>方法: 删除两个定义之一 ...
2018-08-06 16:19:06 2053
原创 CORS-资源跨域共享
说明:Spring MVC4.2增加了CORS,4.2以下支持资源跨域共享如下1、依赖的包 java-property-utils-1.9.1.jar cors-filter-1.9.2.jar2、POM文件配置: <dependency> <groupId>com.thetransactioncompany</group...
2018-05-22 08:51:16 192
原创 kaptcha验证码
生成4位数字验证码 <servlet> <servlet-name>Kaptcha</servlet-name> <servlet-class>com.google.code.kaptcha.servlet.KaptchaServlet</servlet-class> <init-param> &...
2018-05-11 09:25:32 170
转载 Spring Bean
package com.supermap.sgis.util;import org.springframework.context.ApplicationContext;import org.springframework.context.ApplicationContextAware;/** * 以静态变量保存Spring ApplicationContext, 可在任何代码任何地方任
2017-08-07 14:17:24 187
转载 基于Spring 的 Hibernate5的String 类型与Clob对应(适用于4.x)
转载自:http://www.wangwenhui.com.cn/archives/82项目现在换成hibernate5后,在原先使用Spring的ClobStringType类型进行String与Clob对应时,无法使用,直接是报空指针异常,经过对Spring源码分析后,发现,ClobStringType是Spring基于hibernate3给出的解决方案,无法支持到hibe
2017-07-24 13:16:16 2094
原创 plsql 选择database时下拉框空白
1、下载instantclient_11_22、解压instantclient_11_2,放到任意位置3、配置PLSQL"工具-->首选项",具体配置的地方如图
2017-07-06 10:45:21 3207
原创 Activiti5 学习笔记
关于使用acticiti-explorer包时报由activiti 和 java8兼容性引起的:Caused by: org.activiti.engine.ActivitiException: problem evaluating script: ReferenceError: "importPackage" is not defined in at line number 3可以把jdk
2017-05-12 14:12:06 471
原创 墨卡托和经纬度坐标互相转换
public class Point { private double x; private double y; public double getX() { return x; } public void setX(double x) { this.x = x; }
2017-05-09 13:56:52 9259
PostgreSQL.7z
2020-06-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人