by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    six.nonacosa
    @pkwenda
    It is very 666
    biezhi
    @biezhi
    Welcome to your ideas and suggestions, and communicate with the interesting boys here.
    :clap:
    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 ~
    W.Z.
    @naiive94
    cool cooler coolest
    José Vieira Neto
    @NetoDevel
    @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...
    itfol
    @itfol
    public void updateUser(@Param HashMap<String, String> map, Response response) {}
    Can I use it like this?
    biezhi
    @biezhi
    @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) {}
    Littlefisher619
    @Littlefisher619
    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
    Littlefisher619
    @Littlefisher619
    before() function in AuthMiddleware never be executed.
    brucejobs
    @brucejobs
    what's pl
    support redssion
    @biezhi
    先修客
    @liujiaxian
    java.lang.NullPointerException
    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?
    先修客
    @liujiaxian
    java.lang.NoClassDefFoundError: com/blade/Blade
    SirVEGAS
    @23Nacional21_twitter
    El framework se ve bien , me recuerda a flask de python
    José Vieira Neto
    @NetoDevel
    @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
    @subhayandutta_twitter
        final Gson gson = new GsonBuilder()
            .excludeFieldsWithoutExposeAnnotation()
            .excludeFieldsWithModifiers(java.lang.reflect.Modifier.TRANSIENT)
            .create();
        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
    @subhayandutta_twitter
    Another case:
    2020 Jun 25 20:20:44:701 ERROR DefaultExceptionHandler -
    java.lang.UnsupportedOperationException
    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