- 博客(20)
- 资源 (1)
- 收藏
- 关注
原创 解决 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
解决 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".今天使用junit时出现这个错误提示,虽然运行结果没有问题,但还是解决并记录。官网的说明和解决方法This error is reported when the org.slf4j.impl.StaticLoggerBinder class could not be...
2018-03-29 00:23:25
5511
原创 windows 下安装redis
windows 安装redis一、下载官网上不提供windows版本的,只提供linux版本的下载 ,Windows版的只能在github上下载。redis官网:https://redis.io/官网下载地址:https://redis.io/downloadgithub下载地址:https://github.com/MicrosoftArchive/redis/tags这里有两个版本,一个是 z...
2018-03-28 23:40:39
7276
原创 springboot dao层注解失败
springboot dao层注解失败springboot 项目编译报错 报错信息如下Field ulevelDao in demo.service.impl.UlevelServiceImpl required a bean of type demo.dao.UlevelDao' that could not be found.Consider defining a bean of type '
2017-12-23 22:01:58
17452
1
转载 springboot项目浏览器报错:There was an unexpected error (type=Not Found, status=404).
springboot项目浏览器报错:There was an unexpected error (type=Not Found, status=404).报错信息springboot+thymeleaf项目,运行时页面报错信息如下:This application has no explicit mapping for /error, so you are seeing thi...
2017-12-23 15:40:20
130106
16
转载 @Component, @Repository, @Service的区别
@Component, @Repository, @Service的区别官网引用引用spring的官方文档中的一段描述:在Spring2.0之前的版本中,@Repository注解可以标记在任何的类上,用来表明该类是用来执行与数据库相关的操作(即dao对象),并支持自动处理数据库操作产生的异常在Spring2.5版本中,引入了更多的Spring类注解:@Component,@Service,@Con
2017-12-07 14:18:47
174558
18
转载 mysql 日期操作 增减天数、时间转换、时间戳
mysql 日期操作 增减天数、时间转换、时间戳MySQL datediff(date1,date2):两个日期相减 date1 - date2,返回天数。 select datediff(‘2008-08-08’, ‘2008-08-01’); – 7 select datediff(‘2008-08-01’, ‘2008-08-08’); – -7一、MySQL 获得当前日期时间 函数1.1
2017-11-29 14:54:12
1620
原创 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo.
安装了mysql5.7,用group by 查询时抛出如下异常:Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo.t_long.user_name' which is not functionally dependent on columns in GR
2017-11-29 13:27:53
83026
19
转载 # 与 $ 区别以及 sql 预编译
与 $ 区别以及 sql 预编译前言 MyBatis中使用parameterType向SQL语句动态传参,parameterType后的类型可以是基本类型int,String,HashMap和java自定义类型。在SQL中引用这些参数的时候,可以使用两种方式#{parameterName}或者${parameterName} 例如我们需要根据用户的姓名来筛选用户时,sql 如下:
2017-11-27 22:58:48
1820
1
转载 String,StringBuffer与StringBuilder的区别
String,StringBuffer与StringBuilder的区别简单介绍1、String 字符串常量String:字符串常量,字符串长度不可变。Java中String是immutable(不可变)的。 String类的包含如下定义:/** The value is used for character storage. */ private final char value[]; /
2017-11-27 14:32:24
285
转载 Tomcat 部署项目的三种方法
Tomcat 部署项目的三种方法1、下载 Tomcat 服务器 ①、官网下载地址:http://tomcat.apache.org/2、启动并部署 Tomcat 服务器 ①、解压 tomcat 安装包到一个非中文目录下 ②、配置环境变量。JAVA_HOME(指向 JDK 安装的根目录) ③、双击 apache-tomcat-6.0.16\bin 目录下的 startup.bat,启动
2017-11-06 17:55:51
698
转载 Tomcat部署Web应用方法总结
Tomcat部署Web应用方法总结原文地址:http://blog.youkuaiyun.com/yangxueyong/article/details/6130065 在Tomcat中部署Java Web应用程序有两种方式:静态部署和动态部署。 在下文中$CATALINA_HOME指的是Tomcat根目录。一、静态部署静态部署指的是我们在服务器启动之前部署我们的程序,只有当服务器启动之后,我们的Web应用
2017-11-06 11:52:45
259
原创 TOMCAT安装环境变量配置
TOMCAT安装环境变量配置最近老装tomcat,记录一下。一、tomcat下载官网地址:http://tomcat.apache.org/ 官网下载地址:https://tomcat.apache.org/download-90.cgi二、安装将下载的文件加压到要安装的位置,如:D:\PmFs三、环境变量配置新建 CATALINA_BASE,变量值:D:\PmFs\apache-tomca
2017-11-02 22:12:47
612
原创 上传文件报错:The current request is not a multipart request] with root cause
长传文件时报错:The current request is not a multipart request] with root cause解决:在标签加上 : enctype="multipart/form-data" 参考:上传文件的表单中要加属性enctype="multipart/form-data",如果不写enctype属性时,也默认为其添加了enctype属性
2017-11-02 14:34:44
38570
转载 SpringMVC日期类型转换问题三大处理方法归纳
前言 我们在SpringMVC开发中,可能遇到比较多的问题就是前台与后台实体类之间日期转换处理的问题了,说问题也不大,但很多人开发中经常会遇到这个问题,有时很令人头疼,有时间问题暴露的不是很明显,然后逐渐对问题进行跟踪,会发现是日期类型转换失败“映射”不到对应的持久类的日期属性上造成的,由此我还特意写过一篇博文:SpringMVC中出现" 400 Bad Request "错误(用@Respon
2017-10-27 17:26:53
363
转载 spring boot 请求参数增加string 转date全局转换器
使用springboot框架对日期类型进行操作,遇到无法保持的情况,一开始报400的错误(解决方法),解决之后日期类型无法保存到数据库,为了解决这个问题,设置了个全局date转换器。配置方法1、新增一个转换类新增一个string转换成date的类,实现Converter接口,代码如下:import java.text.SimpleDateFormat;import java.util.Date;i
2017-10-27 17:03:53
16368
3
原创 glyphicons-halflings-regular.woff2 net::ERR_ABORTED
使用bootstrap日历控件问题记录1、报错信息使用bootstrap日历控件,图片和箭头出不来,且js报错如下: http://localhost:8080/fonts/glyphicons-halflings-regular.woff2 net::ERR_ABORTED2、报错原因是:在bootstrap.min.css中有对这些字体文件的引用: @font-face{ font-fami
2017-10-25 17:25:40
34058
1
原创 Property or field 'LevelName' cannot be found on null
Property or field ‘LevelName’ cannot be found on null1、报错信息:Springboot+mybatis+thymeleaf多表查询时,thymeleaf页面报错:Property or field ‘LevelName’ cannot be found on null, 图片如下:2、页面代码:td th:text="${ulevel.Leve
2017-10-19 16:03:55
17562
4
原创 Valid Type Name, BindingResult bindingResult
Valid Type Name, BindingResult bindingResult1.Java使用mysql-jdbc连接MySQL出现如下警告:使用springboot框架进行 新增 和 修改 操作时,页面报错,报错信息如下:Whitelabel Error PageThis application has no explicit mapping for /error, so you a
2017-10-17 11:42:51
951
1
转载 Java连接mysql中遇到的一些问题及解决方法
转载:http://blog.youkuaiyun.com/zdf19931993/article/details/513075430.要想用Java连接mysql数据库,首先装好JDK,配置好环境变量,将jdk*.*.*\lib放入classpath,将jdk*.*.*\bin放入path中(*.*.*表示版本号);其次安装好mysql数据库,然后下载连接数据库要用的驱动包,并配置环
2017-10-11 19:42:58
697
原创 windows 下安装jdk
windows 下安装jdk本文简述的是exe版的安装1、下载jdk 官网下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html2、安装 点击安装,更改路径然后下一步、下一步直到完成。 3、环境变量配置 3.1 进入环境变量设置位置 右键“我的电脑“——属性——高级系统设置——环境变量,如下图: 3.
2017-10-10 14:40:47
811
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人