Giter Site home page Giter Site logo

Comments (10)

hectorqin avatar hectorqin commented on May 19, 2024

另外,加群好几天都没通过

from cloudopt-next.

T-baby avatar T-baby commented on May 19, 2024

你好,日志大段空白的话说明对彩色日志支持得不好,建议将设置中的 logColor 改为 false。

关于多数据库连接的问题、gradle 的示例我们会考虑看看。欢迎贡献代码。

from cloudopt-next.

hectorqin avatar hectorqin commented on May 19, 2024

终端环境是 Item2 + zsh 哦

from cloudopt-next.

T-baby avatar T-baby commented on May 19, 2024

不同终端和系统目前不是完美的兼容,我们会考虑换一个加颜色的库的,尝试关闭看看。

from cloudopt-next.

hectorqin avatar hectorqin commented on May 19, 2024

关闭颜色之后,日志显示正常了

另外,感觉配置不是很灵活,没有从环境变量里面读取配置,最重要的是 这个env配置,最好是能从环境变量中加载,且优先级更高

image

from cloudopt-next.

T-baby avatar T-baby commented on May 19, 2024

比较推荐的做法是用:

ConfigManager.initExternalConfigMap("D:/application.json")

然后将路径什么的通过 k8s 的 ConfigMap 映射过去,或者通过 docker 挂载一个文件。

如果不使用 docker 的话,纯通过环境变量,也可以将不同的文件的地址通过环境变量放入。

from cloudopt-next.

hectorqin avatar hectorqin commented on May 19, 2024

我的意思是 带有env的配置是不同环境的特殊配置,判断当前环境优先从环境变量里面读取。这样就可以实现 application.json 是通用配置,项目里面可以打包其他环境配置,通过配置 env 这个环境变量,来加载不同环境下的特殊配置

from cloudopt-next.

T-baby avatar T-baby commented on May 19, 2024

嗯嗯,可以考虑。不过这样其实不是很安全。暂时你可以自己在代码中检测环境并按照代码重新加载下 json 即可。

from cloudopt-next.

T-baby avatar T-baby commented on May 19, 2024

在 3.1.0.0 版本中已经支持了多数据库源和自动关闭多彩日志了。

from cloudopt-next.

hectorqin avatar hectorqin commented on May 19, 2024

ok

from cloudopt-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.