自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 问答 (3)
  • 收藏
  • 关注

原创 windows下安装配置solr以及springboot整合solr

(1)windows下安装配置solr:https://www.cnblogs.com/wdfordream/p/11352053.html完成第(1)步,在进行第(2)步(2)springboot整合solr:https://www.cnblogs.com/wdfordream/p/11377161.html注意实体类:陷阱坑:solr在dataimport导入数据并可以在【...

2019-09-17 21:39:33 603

转载 Mysql批量更新的一个坑:&allowMultiQueries=true 允许批量更新

前言实际上,我们经常会遇到这样的需求,那就是利用Mybatis批量更新或者批量插入,但是,实际上即使Mybatis完美支持你的sql,你也得看看你说操作的数据库是否支持,而阿福,最近就遇到这样的一个坑。问题先带大家来看一段sql的配置,<update id="updateAllAvailable"> <foreach coll...

2019-09-16 15:01:36 538

原创 SpringBoot上传Excel文档报错,Failed to bind properties under 'spring.servlet.multipart.max-request-size'

报错:Failed to bind properties under 'spring.servlet.multipart.max-request-size' to org.springframework.util.unit.DataSizespringboot上传Excel文件的时候,在applicayion.properties 或者 applicayion.yml 文件中配置spring....

2019-08-12 22:43:27 3451

原创 解决springboot上传文件至当前项目目录下,上传成功后,再次刷新项目才显示上传结果

最近使用SpringBoot开发项目,上传word文档至该项目某个目录下,当上传成功后,右键项目工程 ===》Refresh (F5)后,才显示出来我刚才上传word文档,出现这种问题的解决办法是:Window===》Preferences===》General===》Workspace ,右侧已经默认勾选了 Refresh on access,然后我们将 Refresh using n...

2019-08-12 22:37:58 2539

原创 Failed to read schema document 'http://www.springframework.org/schema/context/spring-context-4.3.xsd

例如报错信息如下:Multiple annotations found at this line:    - schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/context/spring-context-4.3.xsd', because 1) could  ...

2018-11-09 16:45:40 1214

原创 在eclipse中安装lombok插件的问题

日常开发的过程中,难免会重复敲一些没有什么技术含量的代码,比如:生成实体类属性的setter和getter方法,无参和有参构造方法,或者开发过程中增减属性等,为了追求开发速度和效率,使用注解的方式代替以上工作。解决方案:在eclispe中安装lombok插件1.如果是maven构建的项目,在pom文件引入lombok依赖    &lt;dependency&gt;         &...

2018-08-28 14:14:28 6028

原创 Spring Boot核心原理浅析

1. spring boot 定义:(1)spring boot是一个快速开发框架,能够帮助开发人员快速的整合第三方常用框架,比如(mybatis、redis、jdbc等)。底层原理:Maven的子父依赖关系,开发所用到的jar包存在于封装好的依赖信息中。(2)spring boot完全采用注解化,简化了XML文件的配置。底层原理:spring 3.0之后,提供了注解,Spring...

2018-08-09 15:28:50 1815

原创 No serializer found for class com.entity.User and no properties discovered to create BeanSerializer

报错内容:com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class com.entity.User and no properties discovered to create BeanSerializer 解决方法:将实体类的属性,访问权限由 private 修改为...

2018-08-09 10:12:50 8644 4

原创 解决Mybatis的配置文件标签属性自动提示

当我们配置Mybatis的全局配置xml文件,还是其他的配置xml文件,具体的操作方法都是雷同的!!!我们以mybatis为例:第一步:搞清标签属性代码自动提示由谁来负责,很明显就是我们建立xml文件的时候会生成一个 .dtd文件头,例如:没错就是它!!!(如果没有自动生成,我们网上找一个对应的xml文件,把DOCTYPE头部信息拷过去就可以啦)第二步:搞清它是干嘛的???.dtd文...

2017-12-01 11:57:24 9401 3

转载 Multiple annotations found at this line: - String cannot be resolved to a type - The method getConte

报错内容:Multiple annotations found at this line:- String cannot be resolved to a type- The method getContextPath() from the type HttpServletRequest refers to the missing type String解决

2017-11-23 10:13:01 474

原创 html的input标签disabled和readOnly属性的异同点

共同点:disabled和readOnly都能实现input标签文本框的不可编辑和只读功能异同点:1.disabled可以使input标签文本框变色 最重要的一点就是让input标签文本框“失效”,实质就是后台无法获取到input标签的value的真实值,而是获取到值的是null(1) (2) 结果:2. (1)readOnly可以使input标

2017-10-28 15:35:48 354

原创 启动Tomcat服务器报错

启动Tomcat服务器报错:Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be usin

2017-10-12 22:44:25 406

原创 活动安排问题

package 贪心算法;//贪婪算法活动安排问题import java.util.Scanner;public class Makui {public static void main(String[] args) {// TODO Auto-generated method stubint b[]= new int[11];//b[]记录起始时间

2016-10-30 01:13:02 355

原创 背包问题

import java.text.NumberFormat;import java.util.Scanner;public class Makui {public static void main(String[] args) {// TODO Auto-generated method stubint n;//物品种类System.out.print("输

2016-10-30 01:08:17 172

原创 最优装载

package 最优装载;import java.util.Scanner;public class Makui {public static void main(String[] args) {// TODO Auto-generated method stubint MAXNUM=0;System.out.print("输入轮船的荷载重量:");Scanner ship=new ...

2016-10-30 01:02:32 352

原创 C语言程序实现空心五角心

#include int main(){    int i,j,k;//i是表示行,j是表示空格,k是表示*    for(j=1;j    printf(" ");    printf("*");    printf("\n");    for(i=1;i    {        for(j=1;j        printf(" ");     

2016-10-08 09:47:25 3505

原创 C语言程序模拟银行输入密码

#include #include int main(){    int pass,i=0,p=5;    //pass为密码,i为输入错误密码次数 p是5秒时间退出或进入系统。    printf("请注意周边环境,请输入密码:\n");    while(pass!=123456)//当pass不等于123456时,一直死循环    {        s

2016-10-08 09:17:48 5126 1

空空如也

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

TA关注的人

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