会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
北极的大企鹅
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
17
18
19
20
21
22
23
24
25
···
52
下一页
2018年7月16日
IntelliJ IDEA 2017版 spring-boot搭建拦截器
摘要: 1、建立一个springboot-web项目 https://www.cnblogs.com/liuyangfirst/p/8298588.html 2、加入过滤接口 1 public class LoginInterceptor implements HandlerInterceptor { 2
阅读全文
posted @ 2018-07-16 10:55 北极的大企鹅
阅读(268)
评论(0)
推荐(0)
2018年7月15日
Spring boot 集成Dubbo简单版,准备工作,
摘要: 一、GitHub上找寻Dubbo资源 阿里巴巴在其GitHub上已经写好一个Github案例所以我们只要进入其Git上就可以看到和clone这个项目 二、阿里巴巴GitHub使用 https://github.com/alibaba 首页 然后再搜索框输入,boot,就会找到springboot,如
阅读全文
posted @ 2018-07-15 01:02 北极的大企鹅
阅读(215)
评论(0)
推荐(0)
2018年7月8日
IntelliJ IDEA 2017版 spring-boot2.0.4+mybatis+Redis处理高并发,穿透问题
摘要: 一.当采用reddis缓存的时候,如果同时,一万次访问,那么就会有10000次访问数据库所以就会对数据库造成巨大压力,这时候,就要用到线程 1.方法体上加锁(优点,防护住了并发锁,缺点降低了内存效率) 1 /** 2 * 最简洁的高并发处理,但是,牺牲效率大 3 * 4 * @return 5 */
阅读全文
posted @ 2018-07-08 14:07 北极的大企鹅
阅读(833)
评论(0)
推荐(1)
IntelliJ IDEA 2017版 spring-boot2.0.4+mybatis 自动部署的细节问题
摘要: 一.加载pom依赖包 1 <!--spring-boot开发热部署--> 2 <dependency> 3 <groupId>org.springframework.boot</groupId> 4 <artifactId>spring-boot-devtools</artifactId> 5 <o
阅读全文
posted @ 2018-07-08 09:25 北极的大企鹅
阅读(191)
评论(0)
推荐(0)
yml的mybatis的sql查看;Mybatis+Springboot 控制台查看日志,Mybatis结合springboot打印日志
摘要: 1.配置如图 文件为yml 1 mybatis: 2 mapper-locations: classpath:com/springboot/transaction/mapper/*.xml 3 configuration: 4 log-impl: org.apache.ibatis.logging.
阅读全文
posted @ 2018-07-08 07:58 北极的大企鹅
阅读(4783)
评论(0)
推荐(1)
IntelliJ IDEA 2017版 spring-boot2.0.4+mybatis反向工程;mybatis+springboot逆向工程
摘要: 一.搭建环境 采用IDE自动建立项目方式 然后,next next,配置导入依赖包 项目就生成了,在项目下导入配置文件GeneratorMapper.xml(项目结构如图所示) 配置文档,建立数据库和数据库连接 1 <?xml version="1.0" encoding="UTF-8"?> <!D
阅读全文
posted @ 2018-07-08 06:33 北极的大企鹅
阅读(577)
评论(0)
推荐(0)
Spring boot自动设置包依赖,根本不用记,
摘要: maven有和多依赖包,每次搭建都很麻烦,其实IDE ,有个小技巧,就是如图所示,你给需要的技术,加入进去,自动就会生成包和相关依赖,根本无需自己配置
阅读全文
posted @ 2018-07-08 01:09 北极的大企鹅
阅读(234)
评论(0)
推荐(0)
2018年7月7日
IntelliJ IDEA 2017版 spring-boot2.0.4的集成JSP
摘要: 一、必须依赖四个包,其中三个是springboot自带包,可以不写版本号,有一个不在springboot中,需要设置版本号 1 <!--引入Spring Boot内嵌的Tomcat对Jsp的解析包--> 2 <dependency> 3 <groupId>org.apache.tomcat.embe
阅读全文
posted @ 2018-07-07 05:12 北极的大企鹅
阅读(323)
评论(0)
推荐(0)
IntelliJ IDEA 2017版 spring-boot2.0.4的yml配置使用
摘要: 一、必须配置字端两个 1 server: 2 port: 8080 3 servlet: 4 context-path: /demo 二、两种mvc转换springboot,一种是注解,一种就是.yml或properties配置 三、实际项目源码 https://github.com/liushao
阅读全文
posted @ 2018-07-07 05:09 北极的大企鹅
阅读(312)
评论(0)
推荐(0)
2018年6月20日
ActiveMq安装
摘要: 一、在Windows平台安装ActiveMQ 1、下载安装包 官网访问:http://activemq.apache.org/activemq-5154-release.html 选择第一个安装: 解压安装包,放入C盘(习惯) 打开bin文件, 两个启动版本,一个是win32,一个是win64,两个
阅读全文
posted @ 2018-06-20 20:37 北极的大企鹅
阅读(239)
评论(0)
推荐(0)
上一页
1
···
17
18
19
20
21
22
23
24
25
···
52
下一页
公告
阅读 -
79万