码迷,mamicode.com
首页 >  
搜索关键字:SpringBoot    ( 9666个结果)
SpringBoot中添加事务
今天项目中需要使用到事务,所以在这里将SpringBoot的事务实现方式学习一下 SpringBoot中使用事务会使用到@Transactional这个注解来实现 先来对Transactional注解有个大致了解 1.其上注解 2.属性 2.1 rollbackFor(这就是我今天使用到的属性) 指 ...
分类:编程语言   时间:2018-09-08 23:29:38    阅读次数:284
springBoot配置
springBoot配置 1、pom.xml配置 1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2 xsi:schemaLocati ...
分类:编程语言   时间:2018-09-08 23:27:34    阅读次数:217
SpringBoot使用Mybatis-Generator
本文介绍如何将Maven和Mybatis Generator配合使用。 简介 Mybatis Generator是Mybatis提供的一个便捷型插件,自动可以为项目生产对应的实体类,Mapper,dao层。 官网文档: "http://www.mybatis.org/generator/index. ...
分类:编程语言   时间:2018-09-08 18:58:55    阅读次数:181
从零搭建java后台管理系统(一)
框架搭建 一、初步设想,使用springboot,框架打算用到依赖 1. spring web,devTools,mysql,Aspect,Redis,Lombok,Freemark,Shiro,Rabbitmq,MyBatis 2. 登录 start.spring.io 自动生成springboo ...
分类:编程语言   时间:2018-09-08 15:21:35    阅读次数:250
SpringCloud 入门理论知识
SpringCloud 入门问题 1. 微服务概念 2. 微服务之间如何通信 3. SpringCloud与Dubbo的区别 4. SpringBoot与SpringCloud的关系 5. 服务熔断和服务降级概念 6. 微服务的优缺点 7. 微服务技术栈 8. eureka和zookeeper的区别 ...
分类:编程语言   时间:2018-09-08 14:15:10    阅读次数:797
SpringBoot 集成 Shiro:使用Shiro的权限管理(六)
上一章使用了Shiro的角色管理,现在加入粒度更小的权限管理,即根据用户角色分配的权限来判断用户能否访问页面 准备实体类和修改数据源 @Getter @Setter public class Role implements Serializable { private String name; pr ...
分类:编程语言   时间:2018-09-08 14:14:52    阅读次数:210
SpringBoot 集成 Shiro:使用Shiro的加密功能(四)
因为在实际应用中用户密码不会使用明文保存,最广泛的是使用md5 sha等不可逆的加密算法将密码加密后存入数据库,所以在认证的时候也要将登录请求中的密码做同样的加密才能与数据库中数据做比对。 创建用户 @Getter @Setter public class User implements Seria ...
分类:编程语言   时间:2018-09-08 14:11:53    阅读次数:171
SpringBoot 集成 Shiro:使用Shiro的角色管理(五)
Shiro的角色管理,可以根据 添加Role实体类,修改User类,修改数据源 @Getter @Setter @AllArgsConstructor public class Role implements Serializable { private String name; } @Getter ...
分类:编程语言   时间:2018-09-08 14:08:24    阅读次数:195
Idea中Springboot热部署无效解决方法
仅适用IDEA中,eclipse中不需要设置 一、开启idea自动make功能 1 - Enable Automake from the compiler PRESS: CTRL + SHIFT + A TYPE: make project automatically PRESS: Enter En ...
分类:编程语言   时间:2018-09-08 11:44:59    阅读次数:205
springboot快速实用
1.编写SpringConfig 用于实例化Spring容器 @Configuration //通过该注解来表明该类是一个Spring的配置,相当于一个 文件 @Bean // 通过该注解来表明是一个Bean对象,相当于xml中的`` ...
分类:编程语言   时间:2018-09-08 10:25:20    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!