Giter Site home page Giter Site logo

Comments (10)

noear avatar noear commented on July 20, 2024 1

我还想在 solon 2.0 时,把 solon 内核模埠,降到 200k 以下的:)

from solon.

noear avatar noear commented on July 20, 2024

可以提交 “Pull requests”,增加这个打印:)

from solon.

noear avatar noear commented on July 20, 2024

不过 solon 叫 “solon”,并不叫 "solon boot":)

from solon.

pmg1991 avatar pmg1991 commented on July 20, 2024

不过 solon 叫 “solon”,并不叫 "solon boot":)

corrected in pull request

from solon.

pmg1991 avatar pmg1991 commented on July 20, 2024

What is the best way to support the custom banner that any user can configure. like solon.banner.path: banner.txt?

from solon.

noear avatar noear commented on July 20, 2024

可以的。写个小示例方便你了解 Utils 的一些常用接口:

//通过配置获取 bannerPath
String bannerPath = Solon.cfg().get("solon.banner.path", "banner.txt");

//然后尝试获取内容
String bannerTxt = Utils.getResourceAsString(bannerPath);

//如果没有则默认为 Solon
if(Utils.isEmpty(bannerTxt)){
bannerTxt="Solon";
}

from solon.

noear avatar noear commented on July 20, 2024

或许只允许使用 banner.txt 文件(基于约定大于配置的原则):

//然后尝试获取内容
String bannerTxt = Utils.getResourceAsString("banner.txt");

//如果没有则默认为 Solon
if(Utils.isEmpty(bannerTxt)){
bannerTxt="Solon";
}

from solon.

pmg1991 avatar pmg1991 commented on July 20, 2024

Can we make the banner the first think to print before "[Solon] App: Start loading"?

image

from solon.

noear avatar noear commented on July 20, 2024

如果那样的话,需要加到 solon 内核项目:solon 。。。这样,会让它的包变大的:)。。。先保持现在这样吧:)

可以提交 pr 了。。。用 dev 开发,pr 到 dev 啊:)

from solon.

pmg1991 avatar pmg1991 commented on July 20, 2024

Please review

from solon.

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.