码迷,mamicode.com
首页 >  
搜索关键字:SpringBoot    ( 9666个结果)
【Python】使用Python调用Rest接口
用SpringBoot写了一个几个简单的Rest接口,对一个计数器进行查询,设置和增加,具体可以看: https://www.cnblogs.com/wuyizuokan/p/11117294.html 废话不多说,直接上Python代码: 先启动SpringBoot服务: 运行Python代码的结 ...
分类:编程语言   时间:2019-07-14 20:11:10    阅读次数:175
intellij idea搭建springboot
intellij idea2018.3创建springboot项目1.new > spring initilizer > web > spring web initializer运行项目方法一:导航板上的命令台图标,输入命令:mvn springboot:run,即可看到running,浏览器测试控 ...
分类:编程语言   时间:2019-07-14 19:47:39    阅读次数:122
Spring Boot2(十二):手摸手教你搭建Shiro安全框架
一、前言 SpringBoot+Shiro+Mybatis完成的。 之前看了一位小伙伴的Shiro教程,跟着做了,遇到蛮多坑的(′?皿?`) 修改整理了一下,成功跑起来了。可以通过postman进行测试 不多比比∠( ? 」∠)_,直接上源码:https://github.com/niaobulas ...
分类:编程语言   时间:2019-07-14 18:06:37    阅读次数:140
SpringBoot用SpringAOP实现页面日志访问功能
每一个页面写请求日志太麻烦了,用AOP很方便的实现日志记录功能 参考 https://www.cnblogs.com/wangshen31/p/9379197.html https://blog.csdn.net/qq_35206261/article/details/81945618 ...
分类:编程语言   时间:2019-07-14 18:00:28    阅读次数:91
SpringBoot-用yml集成Mybatis
1.导入依赖 2.我有一个application-dev.yml和一个applicaion.yml 分别是: 3.mybatis已经可以用了,下面是mapper接口 service: controller: ok!还有就是记得注意yml的层次关系,错了然后没看出来,瞎捣鼓然后发现了,再然后就哭了,给 ...
分类:编程语言   时间:2019-07-14 15:12:28    阅读次数:110
SpringBoot java配置类@Configuration 的两种写法
首先在Springboot项目中,件一个java类,使用注解@Configuration ,则这个类是SpringBoot bean的创建的配置文件类,,这种配置文件类有两种写法 1.使用包扫描 ,创建bean2. 使用函数创建bean 1.通过包扫描,将包下所有注解类,注入到spring容器中 2 ...
分类:编程语言   时间:2019-07-14 14:48:14    阅读次数:98
springboot配置多数据源
如果使用springboot开发,可做如下配置: Config: import org.springframework.beans.factory.annotation.Qualifier;import org.springframework.boot.context.properties.Conf ...
分类:编程语言   时间:2019-07-14 09:35:05    阅读次数:145
springboot项目实现批量新增功能
首先是mybatis中的批量新增sql语句。注意:这里我给的是我需要新增的字段,你们改成你们需要的字段。 <insert id="insertBatch" > insert into hm_authorization (ID,ROLE_CODE,RES_TYPE_CODE,RES_CODE) val ...
分类:编程语言   时间:2019-07-14 09:27:56    阅读次数:144
springboot+druid连接池及监控配置
? 1. 问题描述 阿里巴巴的数据库连接池Druid在效率与稳定性都很高,被很多开发团队使用,并且自带的Druid监控也很好用,本章简单介绍下springboot+druid配置连接池及监控。 2. 解决方案 2.1 pom.xml springboot 已经有druid的starter,但是好像有 ...
分类:编程语言   时间:2019-07-14 00:22:35    阅读次数:164
springboot+redis实现session共享
1.场景描述 因项目访问压力有点大,需要做负载均衡,但是登录使用的是公司统一提供的单点登录系统,需要做session共享,否则假如在A机器登录成功,在B机器上操作就会存在用户未登录情况。 2. 解决方案 因项目是springboot项目,采用Springboot+Springsession+Redi ...
分类:编程语言   时间:2019-07-14 00:22:17    阅读次数:183
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!