Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    @mysar welcome to join us :clap:
    Optimizing Blade performance and upgrading to 2.0.4-R1 version, PR has been launched to TechEmpower, waiting to join the 15 round of testing :sparkles:
    José Vieira Neto
    @biezhi nice cli, really the best solution for cli
    I will cancel the development of the one I started with ruby.
    @NetoDevel thank you very much for your contribution, and hope to cooperate with other things.
    José Vieira Neto
    @biezhi Does the blade support reactive programming?
    did you see the new version of spring?
    @NetoDevel your ideas are always turbulent, i like. I'm going to take a look at the concept of responsive programming in Spring5, understand the strengths and weaknesses, and then decide whether Blade needs such things, and think about these issues to make programming more interesting. :smile:
    It is very 666
    Welcome to your ideas and suggestions, and communicate with the interesting boys here.
    I'm going to write English documents for two days, but there may be sentences, grammar wrong places, if who would like flowers to help me fix it, haha ~
    cool cooler coolest
    José Vieira Neto
    @biezhi I'm thinking of developing an annotation @EnableServiceDiscovery
    to register a blade application on eureka.
    What do you think about this?
    among other things to help in a microservice architecture...
    public void updateUser(@Param HashMap<String, String> map, Response response) {}
    Can I use it like this?
    @itfol It is not currently supported to inject parameters into the Map, but you can create a issue if you like. The next version will add it. Currently you need to create a class to receive the parameters, like this:
    public void updateUser(User user, Response response) {}
    hello guys, i'm new for blade development. Could I register multiple middlewares to single URI?
    When I try Blade.of().use(new SignatureMiddleware(),new AuthMiddleware()).start()
    And add a breakpoint to SignatureMiddleware's before() function
    I found this function never be executed. It just like gone away.
    Then I try Blade.of().use(new AuthMiddleware(),new SignatureMiddleware()).start()
    Only the SignatureMiddleware is working
    before() function in AuthMiddleware never be executed.
    what's pl
    support redssion
    at com.blade.embedd.EmbedJettyServer.<init>(EmbedJettyServer.java:65)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.lang.Class.newInstance(Class.java:442)
    at com.blade.Blade.startNoJoin(Blade.java:562)
    at com.blade.Blade.start(Blade.java:531)
    at com.blade.Blade.start(Blade.java:537)
    at com.sp.Application.main(Application.java:7)
    Exception in thread "main" java.lang.NullPointerException
    at com.blade.Blade.start(Blade.java:532)
    at com.blade.Blade.start(Blade.java:537)
    at com.sp.Application.main(Application.java:7)
    java -jar Error occurred,How can I solve this?
    java.lang.NoClassDefFoundError: com/blade/Blade
    El framework se ve bien , me recuerda a flask de python
    José Vieira Neto
    @Littlefisher619 did you manage to solve the problem of multiple middlewares? Would like to help.
    @liujiaxian, strange .. never saw the blade with support the jetty server only the netty.
    Subhayan Dutta
        final Gson gson = new GsonBuilder()
        Type listType = new TypeToken<List<MyClass>>() {}.getType();
        String jsonElem = gson.toJson(test, listType);
        return RestResponse.ok(test);
    The above code hangs on the last line. Using JsonElement and its toString() causes the json data to get extra quotes. Any ideas ?
    Subhayan Dutta
    Another case:
    2020 Jun 25 20:20:44:701 ERROR DefaultExceptionHandler -
    at org.objectweb.asm.ClassVisitor.visitNestMemberExperimental(ClassVisitor.java:248)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:651)
    at org.objectweb.asm.ClassReader.accept(ClassReader.java:391)
    at com.blade.reflectasm.ASMUtils.findMethodParmeterNames(ASMUtils.java:35)
    at com.blade.mvc.handler.RouteActionArguments.getRouteActionParameters(RouteActionArguments.java:39)
    at com.blade.mvc.RouteContext.injectParameters(RouteContext.java:603)
    at com.blade.server.netty.RouteMethodHandler.handle(RouteMethodHandler.java:79)
    at com.blade.server.netty.HttpServerHandler.executeLogic(HttpServerHandler.java:158)
    at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
    at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:462)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897)
    at java.base/java.lang.Thread.run(Thread.java:830)
    This is different, this is a simple GET