
springboot
mhi()
这个作者很懒,什么都没留下…
展开
-
SpringBoot jar包部署及脚本启动
springboot jar包部署及启动.原创 2022-08-06 16:23:00 · 848 阅读 · 0 评论 -
: No qualifying bean of type 'javax.servlet.Filter' ,Error creating bean with name 'traceFilterRegis
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat ...原创 2019-11-06 17:10:17 · 1634 阅读 · 0 评论 -
Consider defining a bean named ‘shiroFilterFactoryBean‘ in your configuration.
springBoot+apache.shiro启动失败:错误如下:Description:Method filterShiroFilterRegistrationBean in org.apache.shiro.spring.config.web.autoconfigure.ShiroWebFilterConfiguration required a bean named 'shiroFilterFactoryBean' that could not be found.Action:...原创 2020-08-26 20:25:51 · 835 阅读 · 2 评论 -
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
一,在main方法所在的类忘记添加@SpringBootApplication二,查看启动模块,是否添加一下包。切记一下包不能排除内置tomcat的依赖,否则启动将会出现上面的错误 1 2 3 4 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starte...原创 2021-11-30 14:21:59 · 937 阅读 · 0 评论 -
SpringBoot整合Swagger3.0.0
一、POM添加依赖<dependency><groupId>io.springfox</groupId><artifactId>springfox-boot-starter</artifactId><version>3.0.0</version></dependency>二、Application启动应用类上面加入@EnableOpenApi注解@EnableO...原创 2020-08-24 14:39:16 · 7228 阅读 · 0 评论 -
springBoot required a bean of type 'org.springframework.data.redis.core.RedisTemplate'
springBoot 启动报错: required a bean of type 'org.springframework.data.redis.core.RedisTemplate' 产生这个问题的原因是:系统启动的时候没有扫描到这个RedisTemplate bean,报错 排查方向目前有两个: 1.Application 启动类位置问题...原创 2019-12-11 17:29:01 · 16395 阅读 · 0 评论 -
java.lang.NoSuchMethodException: tk.mybatis.mapper.provider.base.BaseSelectProvider
产生原因:使用 tk.mybatis,启动类Application中@MapperScan注解 导入org.mybatis.spring.annotation.MapperScan包 错误解决办法:原创 2019-08-20 20:19:22 · 666 阅读 · 0 评论 -
Unable to infer base url. This is common when using dynamic servlet registration or when the API is
解决办法:在application启动类中未定义@EnableSwagger2注解原创 2019-08-20 13:41:37 · 410 阅读 · 0 评论 -
@Slf4j注解中 log 报错
产生原因:可能你使用的开发工具没有集成lombok.jar解决办法:复制你项目中依赖lombok.jar 这个版本的jar。这里以eclipse为例: 把这个lombok.jar复制到你eclipse平级目录中,然后在eclipse.ini加上 -javaagent:D:\eclipse-jee-2019-06\lombok.jar ,重新打开ecli...转载 2019-08-20 10:27:11 · 15646 阅读 · 1 评论 -
NoSuchMethodException: tk.mybatis.mapper.provider.base.BaseInsertProvider.<init>()
产生原因:原因是你集成使用tk.mybatis 的包,dao接口中导入的都是k.mybatis有关的包,而Application 启动类中@MapperScan注解 导入的包是org.mybatis.spring.annotation.MapperScan。造成k.mybatis这个包中初始化失败解决办法:Application 启动类中@MapperScan注解 导包使用import ...转载 2019-08-20 10:26:24 · 1193 阅读 · 2 评论 -
Creating a new SqlSession SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1e0721ac]
问题一:Creating a new SqlSessionSqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1e0721ac] was not registered for synchronization because synchronization is not activeJDBC Connection ...转载 2019-08-20 10:25:25 · 25453 阅读 · 12 评论