Comments (10)
另外,加群好几天都没通过
from cloudopt-next.
你好,日志大段空白的话说明对彩色日志支持得不好,建议将设置中的 logColor 改为 false。
关于多数据库连接的问题、gradle 的示例我们会考虑看看。欢迎贡献代码。
from cloudopt-next.
终端环境是 Item2 + zsh 哦
from cloudopt-next.
不同终端和系统目前不是完美的兼容,我们会考虑换一个加颜色的库的,尝试关闭看看。
from cloudopt-next.
关闭颜色之后,日志显示正常了
另外,感觉配置不是很灵活,没有从环境变量里面读取配置,最重要的是 这个env
配置,最好是能从环境变量中加载,且优先级更高
from cloudopt-next.
比较推荐的做法是用:
ConfigManager.initExternalConfigMap("D:/application.json")
然后将路径什么的通过 k8s 的 ConfigMap 映射过去,或者通过 docker 挂载一个文件。
如果不使用 docker 的话,纯通过环境变量,也可以将不同的文件的地址通过环境变量放入。
from cloudopt-next.
我的意思是 带有env的配置是不同环境的特殊配置,判断当前环境优先从环境变量里面读取。这样就可以实现 application.json
是通用配置,项目里面可以打包其他环境配置,通过配置 env
这个环境变量,来加载不同环境下的特殊配置
from cloudopt-next.
嗯嗯,可以考虑。不过这样其实不是很安全。暂时你可以自己在代码中检测环境并按照代码重新加载下 json 即可。
from cloudopt-next.
在 3.1.0.0 版本中已经支持了多数据库源和自动关闭多彩日志了。
from cloudopt-next.
ok
from cloudopt-next.
Related Issues (20)
- 连接池优化
- 支持国密安全算法
- handler 层支持 suspend
- 支持启发式的图片转为 hash 的算法
- 能不能支持多数据源,包括 mysql, redis, 消息队列 HOT 1
- 能添加对 Ray 框架的支持吗 HOT 1
- JooqPaginate 返回的 count 字段意义 HOT 1
- 建议请求参数校验器直接返回参数错误信息
- 更新一下ReadMe的官网和文档链接地址吧 HOT 1
- AutoEvent 需要支持订阅多个主题
- 更新默认 index 页面中的官网链接
- 启动报出Thread blocked HOT 3
- netty版本不一致,GraalVM打包netty报错,不知道是不是版本冲突引起。 HOT 3
- 能否在一个路由方法上支持多个注解 ? HOT 1
- CacheManager能否支持遍历key? HOT 1
- Bug report: Cannot access classes in vertx-web dependency in SNAPSHOT HOT 1
- Resourcer.kt 函数cleanText 删除/n,是有问题的。导致配置项中/n被删掉了。 HOT 1
- vertx HOT 1
- 监听 yaml 配置文件的更新
- 现在国内随便东抄西补就能吹
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudopt-next.