You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'.
Consider something like:
| // https://mihomo.party/docs/guide/override/javascript | |
| function main(config) { | |
| // 定义新的 socks5 节点 | |
| const newSocks5Node = { | |
| name: "内网跳板", | |
| type: "socks5", | |
| server: "192.168.40.85", | |
| port: 1080, | |
| // 无需用户名和密码认证 | |
| udp: true, // 启用UDP支持 |
| // https://mihomo.party/docs/guide/override/javascript | |
| function main(config) { | |
| // 定义新的 socks5 节点 | |
| const newSocks5Node = { | |
| name: "内网跳板", | |
| type: "socks5", | |
| server: "192.168.40.85", | |
| port: 1080, | |
| // 无需用户名和密码认证 | |
| udp: true, // 启用UDP支持 |
| @[TOC](SpringBoot多数据源动态切换+统一事务配置+动态分页方言) | |
| # 需求驱动技术发展 | |
| 最近有公司项目有一个动态切换数据源的需求,但是网上找到的多半不能用或者是功能不全,自己摸索出了最终配置,在此记录下,帮助下有同样需求的人。 | |
| ## 不墨迹直接贴代码 | |
| 我的项目是分层项目,我选择在Service层写动态切换,因为可以在业务层随意切换数据源,很方便 | |
| 首先定义AbstractRoutingDataSource,这个类是Spring为我们提供的用来动态切换数据源的路由基类,我们只需要实现它并且重写determineCurrentLookupKey方法即可,目的是在Spring选择数据源的时候由我们来动态的指定数据源的Key。 |
| [ 一 ] | |
| 2018年初的时候给自己设了个小目标,完成一个开源微服务框架(Aooms)的开发工作并配套完成系列博客,截至2019年1月,代码部分倒还完成的可以,博客后期完全没有跟上,今天想着明天写,明天想着晚上写,然后晚上因为一些其他事情又耽搁了,如此反复最终的结果就是总共更新了3篇博客,实在是打脸呀,piapia的。 | |
| [ 二 ] | |
| 就这么一件看似很简单的事情,我没有坚持下来,即使一个月更新一篇,一年也是十多篇的输出,可现实就是只有3篇。 |
| https://blog.csdn.net/wbwal159/article/details/78678597 |
| 基于Maven处理 | |
| ```xml | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-maven-plugin</artifactId> | |
| <configuration> | |
| <fork>true</fork> | |
| <!-- spring-boot:run 中文乱码解决 --> |