idea创建 springboot项目过程
标签(空格分隔): springboot
文章目录
整体可以看看 https://github.com/WinterChenS/springboot-learning-experience
项目的创建过程:
https://blog.csdn.net/maomengmeng/article/details/76522416
gradle配置基础和多环境设置
https://www.cnblogs.com/woms/p/7040771.html
http://www.infoq.com/cn/articles/Gradle-application-in-large-Java-projects/
springboot配置项说明:
https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
springboot日志
https://blog.csdn.net/inke88/article/details/75007649
springboot Security
http://lengyun3566.iteye.com/blog/pdf 官方文档的翻译
https://blog.csdn.net/u012702547/article/details/54319508
http://www.tianshouzhi.com/api/tutorials/spring_security_4/258
https://www.jianshu.com/p/76bfa6743ba9
https://blog.csdn.net/pujiaolin/article/details/73928491
https://www.cnblogs.com/softidea/p/5991897.html 过程,很不错的文章
http://www.dewafer.com/2016/10/01/dive-into-spring-security/
https://www.cnblogs.com/fenglan/p/5913432.html
AuthenticationManager 仅仅是一个接口,所以我们可以任意的选择器实现,但是在实际过程中其是如何工作的呢?如果我们的验证信息位于多个数据库实例或者我们想联合多个使用多个验证服务,例如同时使用JDBC认证和LDAP认证,我们需要做什么呢?
在Spring Secuirty中,AuthenticationManager 默认的实现类是ProviderManager ,ProviderManager 并不是自己直接对请求进行验证,而是将其委派给一个AuthenticationProvider 列表。列表中的每一个AuthenticationProvider将会被依次查询其是否需要通过其进行验证。每个provider的验证结果只有两个情况:抛出一个异常或者完全填充一个Authentication对象的所有属性。你是否还记得我们的好朋友UserDetails和UserDetailsService?如果已经不记得了,请返回之前的章节重新阅读来刷新的你的记忆。验证一个请求最常见的方式是加载对应的UserDetails 来检查用户输入的密码与其是否匹配。DaoAuthenticationProvider使用的就是这种方式(见下文)。被加载的UserDetails 对象(包含了GrantedAuthoritys),在认证成功后,将会被用于填充的Authentication 对象,并且存储在SecurityContext中。
QQ互动验证
https://blog.csdn.net/qq_35508033/article/details/79046441
自定义授权
https://www.jianshu.com/p/01498e0e0c83
对页面按钮级权限控制
https://blog.csdn.net/juan0728juan/article/details/79649098
多认证方式
https://www.cnblogs.com/scau-chm/p/6836748.html 多认证方式
多层次角色
http://www.bubuko.com/infodetail-2089409.html 多层次角色
不同角色跳转不同首页
https://blog.csdn.net/zhengdianwei/article/details/44997835
https://www.2cto.com/kf/201605/506019.html
springboot freemarker
https://blog.csdn.net/zhangxing52077/article/details/75162166
springboot thymeleaf
教程,用chrome打开,可以翻译:https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#conversions
input控制判断及为空时默认值
th:value="${roleModel?.role?.id?:'1'}"
意思是如果id为空,给一个默认值1
springboot jpa
http://blog.csdn.net/mendeliangyang/article/details/52366799/
http://blog.csdn.net/u011054333/article/details/61429740
如果使用的是hql语句查询的话,里面的要查询的字段和where里面的字段都应该是对应的实体类里的属性,
如果使用sql查询数据表的话,里面要查询的字段和where条件里的字段都应该是数据表里的字段,sql语句记得加上 :nativeQuery = true.
例如:@Query(value = "select count(id
) from cdkey_info ", nativeQuery = true)
但是注意,jpa的query使用原生sql查询的时候不支持排序的,需要在sql里面加上:ORDER BY ?#{#pageable}
Spring Security权限控制: https://www.jianshu.com/p/e6655328b211
jpa自动创建表中字段的命名策略
经查证springdatajpa使用的默认策略是ImprovedNamingStrategy
所以修改配置下下hibernate的命名策略就可以了在application.properties文件中加入
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
问题就可以圆满解决了
1、无修改命名
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
2、遇到大写字母 加”_”的命名
spring.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
项目启动后自动执行sql
https://www.cnblogs.com/woshimrf/p/5625474.html
条件查询及分页查询 jpa-spec
https://github.com/wenhao/jpa-spec jpa条件查询组件
MapStruct实体间转换
MapStruct实体间转换快速入门
https://blog.csdn.net/lx_yoyo/article/details/75061614?tdsourcetag=s_pctim_aiomsg
SpringBoot使用MapStruct自动映射DTO
https://segmentfault.com/a/1190000011421042#articleHeader2?tdsourcetag=s_pctim_aiomsg
alibaba-druid数据源
springboot swagger2
https://www.jianshu.com/p/c8715f388544
监听事件
https://segmentfault.com/a/1190000011433514
过滤器Filter
https://www.cnblogs.com/ll409546297/p/7422833.html
spring session 和 redis
https://www.cnblogs.com/river2005/p/6415879.html
https://docs.spring.io/spring-session/docs/current/reference/html5/#samples 重点,可用谷歌浏览器翻译着看
https://docs.spring.io/spring-data/redis/docs/2.0.1.RELEASE/reference/html/#redis:reactive ReactiveRedisConnectionFactory相关,Spring Data Redis资料
https://docs.spring.io/spring-session/docs/current/reference/html5/guides/boot-findbyusername.html 根据用户名查找session
https://blog.csdn.net/jackie_xiaonan/article/details/70187752
https://www.cnblogs.com/fengli9998/p/7881331.html springboot集成springsession利用redis来实现session共享
管理控制台前段框架
AdminLTE
https://3vshej.cn/AdminLTE/AdminLTE-2.4/index2.html 中文文档
https://blog.csdn.net/gebitan505/article/category/7319562 教程
https://www.jianshu.com/p/ccb99040cc76 基础
https://blog.csdn.net/gebitan505/article/details/78679984 基础
http://blog.51cto.com/11140372/1906359 和上面的一起看
https://blog.csdn.net/u014451076/article/details/51037730 首页模板
https://www.cnblogs.com/roy-blog/p/8280933.html?utm_source=debugrun&utm_medium=referral 动态构造菜单,个人感觉不好
http://www.cnblogs.com/cryst/p/6001364.html 一个完整的改造例子,版本不一定适用,可参考
https://gitee.com/zhougaojun/KangarooAdmin 另一个例子
http://www.cnblogs.com/asker009/p/9524662.html 另一个方案,中间内容用jquery的load加载
ACE
http://ace.jeka.by/index.html
http://www.weixuehao.com/archives/408
layuiAdmin
商用需要授权,不算便宜
https://www.layui.com/admin/