Spring Boot
Ethan-cw
越学越发现自己知道的越少!
展开
-
Spring Boot configuration annotation processor not found in classpath
Spring Boot configuration annotation processor not found in classpath问题产生 今天在使用Spring Boot开发的过程中,使用了Druid连接池,但在写Druid相关的Java代码时,提示Spring Boot configuration annotation processor not found in...原创 2018-05-09 14:12:02 · 60016 阅读 · 12 评论 -
SpringBoot2.X集成Redis3.2 Jedis
一、概述 前两三年使用Redis,后面工作中也一直使用。后来由于搭建公司框架,主要是先使用SpringBoot,在SpringBoot的基础上集成Redis。二、win10下安装Redis3.22.1下载Redis3.2首先下载Redis3.2,目前来讲,3.2是相对稳定且比较新的版本了。下载地址:Redis-64(V3.2)。2...原创 2018-07-16 18:07:12 · 12589 阅读 · 2 评论 -
Mybatis Generator异常【Mapper插件缺少必要的mappers属性】解决
最近使用Mybatis Generator的过程中,出现了以下异常,导致生成不了实体、配置文件等,无奈去网上找,也花了不少时间但就是没有找到解决办法,,,但是前两周还是好的,我也还用过的!异常Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate (defa...原创 2018-05-23 17:37:02 · 2898 阅读 · 0 评论 -
SpringBoot+MyBatis(通用Mapper+PageHelper+Generator)+Activiti集成及问题解决
随便一说 因为需要搭建公司新的框架,使用了SpringBoot+MyBatis,加入了MyBatis的通用Mapper、分布插件PageHelper、MyBatis Generator,因为后面做的项目需要用到工作流,所以又需要把工作流(选用了Activiti)加进来。在没有加入Activiti之前,框架搭建的还算比较顺利,包括加入thymeleaf、lombok、swagger等,...原创 2018-05-17 09:33:26 · 2943 阅读 · 2 评论 -
Srping Boot Whitelabel Error Page
问题刚才在使用Spring Boot搭建微服务的时候,遇到一个问题,Spring Boot项目启动后,在页面打开http://localhost:8080/,报错了,信息是:Whitelabel Error Page!解决看代码说话,代码如下:package com.woxin.itsm;import org.springframework.boot.SpringApplication;im...原创 2018-05-05 23:37:22 · 245 阅读 · 0 评论 -
SpringBoot+Tyhmeleaf:Template Mode 'HTML5' is deprecated. Using Template Mode 'HTML'
问题 最近在使用Thymeleaf的时候,启动项目,出现了下面的错误:[THYMELEAF][main] Template Mode 'HTML5' is deprecated. Using Template Mode 'HTML' instead.问题分析解决 出现这个问题,是因为在application.properties中配置了下面的内容:spring.thymeleaf.mo...原创 2018-05-11 11:20:05 · 21506 阅读 · 2 评论 -
解决SpringBoot集成Activiti Modeler后要登陆的问题
开发环境 JDK:1.8; SpringBoot2.0.1; Activiti:5.22.0问题 在集成了Activiti的时候,加入了Activiti的Modeler,但在集成后,启动项目后访问,却是个登陆的界面,搞得我一脸懵逼。。。 当时也不知道用户和密码,但出于好奇,就尝试输入admin去登陆,反正是没成功,提示页面如下:分析解决 ...原创 2018-05-17 14:57:02 · 6868 阅读 · 3 评论 -
SpringBoot+Thymeleaf的java.lang.ClassNotFoundException: org.thymeleaf.spring5.view.ThymeleafViewR问题解决
最近使用SpringBoot+MyBatis搭建框架,使用了Thymeleaf模板,但启动的时候报错了,错误及解决方法如下:错误Caused by: java.lang.ClassNotFoundException: org.thymeleaf.spring5.view.ThymeleafViewResolver解决出现这个错是因为找不到ThymeleafViewResolver,...原创 2018-05-10 18:23:04 · 8063 阅读 · 5 评论 -
Lombok插件安装及使用说明
lombok如果使用了@Getter和@Setter注解,是在编译后会生成getter和setter方法,所以要使用属性的setter和getter方法,还是得生成getter和setter。原创 2018-07-02 17:04:39 · 4240 阅读 · 0 评论 -
Spring Boot与Spring Cloud等的版本对应
一、概述 从使用Spring Boot开始,Spring Boot和Spring Cloud在不断的更新中,社区也很是活跃。到2019年,Spring Cloud推出了Greenwich版本,问题也来了——目前正在使用Spring Cloud和欲尝试使用Spring Cloud的人,对版本肯定是关注的,不同版本之间兼容性不一样,对以后的开发带来的效应也很可能不一样。所以我觉得很有...原创 2019-05-07 01:20:06 · 3748 阅读 · 1 评论