springboot
一路阳光CCG
这个作者很懒,什么都没留下…
展开
-
启动异常Kotlin reflection implementation not found at runtime, related features won‘t be available
Kotlin reflection implementation not found at runtime, related features won't be available原创 2023-03-06 13:49:18 · 4066 阅读 · 1 评论 -
Error running XxlJobExecutorHiveApplication. Command line is too long. Shorten the command line via
Error running XxlJobExecutorHiveApplication. Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun原创 2022-01-05 14:43:32 · 386 阅读 · 0 评论 -
springboot拦截器登录验证
首先是拦截器代码package com.biaodian.admin.config;import com.alibaba.fastjson.JSON;import org.springframework.util.StringUtils;import org.springframework.web.servlet.HandlerInterceptor;import org.springframework.web.servlet.ModelAndView;import javax.serv原创 2021-10-27 14:47:44 · 481 阅读 · 0 评论 -
Caused by: java.lang.ClassNotFoundException: groovy.lang.GroovyClassLoader
我的是整合xxl-job启动的时候出现这个问题,和其他人都不太一样是父项目没指定packaging为pom<packaging>pom</packaging>原创 2021-04-13 20:43:50 · 4197 阅读 · 0 评论 -
springboot定时任务线程池配置
首先定义的是异步线程池,需要再启动类添加注解@EnableScheduling@EnableAsyncpackage com.git.demo;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.scheduling.annotation.EnableA原创 2021-04-13 09:51:47 · 545 阅读 · 0 评论 -
springboot插入数据库乱码问题
1:首先看连接数据库配置是否指定编码,未指定请指定2:如果使用了redisTemplate,指定一下@Configurationpublic class RedisConfig { @Bean public RedisTemplate<String,Object> getRedisTemplate(LettuceConnectionFactory factory){ RedisTemplate<String,Object> redisTem原创 2021-03-27 09:56:52 · 541 阅读 · 0 评论 -
springboot整合redis,用户和密码的关系导致Unable to connect to Redis;
错误的配置spring.redis.username=aaspring.redis.password=123456spring: redis: database: 0 host: 127.0.0.1 port: 6379 username: aa password: 123456 timeout: 1000今天配置的时候username也配置上了,导致Unable to connect to Redis异常,总结一下:如果有用户名的话直接配置原创 2021-03-26 11:28:05 · 4907 阅读 · 3 评论 -
通过Generator生产实体类,mapper,service,xml
通过pom文件<plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.4.0</version> <confi...原创 2021-03-10 16:06:45 · 309 阅读 · 1 评论 -
springboot2.x跨域问题
import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.web.cors.CorsConfiguration;import org.springframework.web.cors.UrlBasedCorsConfigurationSource;import org.springf.原创 2020-12-21 13:19:52 · 82 阅读 · 0 评论 -
springboot项目中使用@RestController注解 pom
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId></dependency>原创 2020-07-24 15:35:41 · 3013 阅读 · 0 评论 -
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2019-06-18 16:52:29.850 ERROR 9248 --- [ main] o.s.boot.SpringApplication ...原创 2020-04-29 16:34:29 · 286 阅读 · 0 评论