码迷,mamicode.com
首页 >  
搜索关键字:Springboot    ( 9666个结果)
springboot docker 部署
1.新建一个最简单的springboot项目 https://code.aliyun.com/859143303/hello-world.git 2.src/main/docker下新建Dockerfile: 3.pom.xml中增加docker-maven-plugin: 4.mvn clean ...
分类:编程语言   时间:2019-11-10 13:58:11    阅读次数:90
springboot启动时报错 错误: 找不到或无法加载主类 com.xxx.xxx.Application
1. Q1 错误: 找不到或无法加载主类 com.xxx.xxx.Application 解决办法:啥也不动,maven clean下,重启 1. Q2 layui控制下拉框高度 解决 ...
分类:移动开发   时间:2019-11-10 13:51:38    阅读次数:450
springboot整合drui、mybatis、pagehelper
springboot配置数据连接池druid Druid是阿里巴巴开发的号称为监控而生的数据库连接池,Druid是目前最好的数据库连接池。 在功能、性能、扩展性方面,都超过其他数据库连接池,同时加入了日志监控, 可以很好的监控DB池连接和SQL的执行情况配置pom依赖 <dependency> <g ...
分类:编程语言   时间:2019-11-10 11:56:23    阅读次数:94
springboot里边拦截器的运用
建一个类去继承HandlerInterceptorAdapter //直接复制就可用 实际项目中已测试 public class AuthorityInterceptor extends HandlerInterceptorAdapter { public boolean preHandle(Htt ...
分类:编程语言   时间:2019-11-10 11:55:43    阅读次数:93
Springboot 使用mybatis
Springboot 使用mybatis 依赖 pom.xml 配置文件 application.yml book实体 bookMapper bookMapper.xml bookService bookController 过程中踩过的坑 1. mapper注入不到, 记得配置 中的 2. 相关 ...
分类:编程语言   时间:2019-11-10 10:04:48    阅读次数:69
JPA实体类与应用不在一个包导致错误:java.lang.IllegalArgumentException: Not a managed type: class AAA
参考文章: springboot:与JPA结合出现异常Caused by: java.lang.IllegalArgumentException: Not a managed type: class xxx - Victory9477的博客 - CSDN博客 1、SpringBoot默认的扫描方式是 ...
分类:编程语言   时间:2019-11-10 09:30:17    阅读次数:83
SpringBoot集成百度UEditor图片上传后直接访问404解决办法
SpringBoot项目上传图片一般是上传至远程服务器存储,开发过程中可能会上传至当前项目的某个静态目录中,此时就会遇到这个问题,文件在上传之后直接访问并不能被访问到,必须重新加载项目。 首先分析一下原因: 我们知道,如果使用类似 /upload/image/1.jpg 这种格式进行图片的访问的时候 ...
分类:编程语言   时间:2019-11-09 23:52:35    阅读次数:186
SpringBoot系列:Spring Boot集成定时任务Quartz
一、关于Quartz Quartz是OpenSymphony开源组织在Job scheduling领域又一个开源项目,它可以与J2EE与J2SE应用程序相结合也可以单独使用。在java企业级应用中,Quartz是使用最广泛的定时调度框架。 在Quartz中的主要概念: Scheduler:调度任务的 ...
分类:编程语言   时间:2019-11-09 23:50:35    阅读次数:96
Springboot中使用自定义参数注解获取 token 中用户数据
使用自定义参数注解获取 token 中User数据 使用背景 在springboot项目开发中需要从token中获取用户信息时通常的方式要经历几个步骤 1. 拦截器中截获token 2. TokenUtil工具类解析token中的用户信息 3. 把解析结果存入到成员变量中 4. controller ...
分类:编程语言   时间:2019-11-09 23:33:08    阅读次数:272
(004)Spring Boot之SpringApplication.run为什么在不加注解的类中也可以运行,及其对比
一般来说springBoot初始运行的类上面会加SpringBootApplication注解,但是我们发现不加注解也可以成功运行,示例如下: pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.ap ...
分类:移动开发   时间:2019-11-09 23:24:47    阅读次数:146
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!