Stella981 Stella981
3年前
SpringBoot集成Spring Security实现登陆和简单权限验证
1.数据库配置好2.导依赖<!springsecurity安全认证<dependency<groupIdorg.springframework.boot</groupId<artifactIdspringb
Stella981 Stella981
3年前
Nginx 反向代理Springboot oAuth https配置方案
Nginx配置方案server{listen80;server_namewww.yourname.com;rewrite^(.)$https://${server_name}$1permanent;}server{
Stella981 Stella981
3年前
Redis bind属性的配置与redis连接
Redis连接文章出处,https://blog.csdn.net/a578977626/article/details/78202202bind配置了什么ip,别人就得访问bind里面配置的ip才访问到redis服务。一台主机,可能会有多张网卡,或者对应多网段内网的Ip,公网IP等,也就意味着其他机器可以通过多个IP地址
Stella981 Stella981
3年前
Spring Boot 2.x基础教程:使用JTA实现多数据源的事务管理
在一个SpringBoot项目中,连接多个数据源还是比较常见的。之前也介绍了如何在几种常用框架的场景下配置多数据源,具体可见:SpringBoot2.x基础教程:JdbcTemplate的多数据源配置(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.didisp
Stella981 Stella981
3年前
Git 手册
gitinit                                                 初始化本地git仓库(创建新仓库)gitconfigglobaluser.name"xxx"                      配置用户名gitconfigglobaluser.emai
Wesley13 Wesley13
3年前
Ubuntu长时间待机Wifi无法连接
Ubuntu长时间待机Wifi无法连接重启网络sudoservicenetworkmanagerrestart修改配置文件在/etc/default/acpisupport里面找到Addservicestothislisttostopthembeforesusp
Wesley13 Wesley13
3年前
spring+mybatis 根据业务场景访问不同数据库,读写分离
//配置文件<beanid"sqlSessionFactory1"class"org.mybatis.spring.SqlSessionFactoryBean"   <propertyname"dataSource"ref"DataSource1"/   <propertyname"configLocat
Wesley13 Wesley13
3年前
DRF自定义用户认证
一、settings中配置AUTHENTICATION_BACKENDS('users.views.CustomBackend',)二、users/views.pyusers.views.pyfromdjango.contrib.auth.backendsimport
Easter79 Easter79
3年前
Spring自带的多线程任务
1.添加配置类packagecom.yiyoudao.config;importorg.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;importorg.springframework.context.annotation.Compo
Nginx 前端服务器 转发后端请求 自定义错误页面
算是备忘吧nginxserver配置:(版本号1.16.1)confserverlisten80defaultserver;listen:::80defaultserver;servernamexxx.net;Loadconfigurationfile