Building Command Line Applications in Spring with Spring Shell

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ส.ค. 2024

ความคิดเห็น • 23

  • @remivieux
    @remivieux หลายเดือนก่อน

    Came for Spring Shell. Learned about setting up Client ! Awesome.

  • @VerhoevenSimon
    @VerhoevenSimon ปีที่แล้ว +6

    Very interesting to see this one after the live segments for it. A nice showcase of spring not just being for webapplications.

    • @DanVega
      @DanVega  ปีที่แล้ว +1

      Thank's for showing up to the live streams and for all of your help Simon 👏🏻

  • @aravshrivastava
    @aravshrivastava 6 หลายเดือนก่อน +1

    Exactly what I was looking for....You've been a great help.

  • @peterdavie3796
    @peterdavie3796 ปีที่แล้ว +2

    Great video. I have just started creating a Spring Shell application!

  • @memillin
    @memillin ปีที่แล้ว +4

    It would be interesting to refactor your previous implementation of ChatGPT-Java CLI with Spring Shell.

  • @adityamparikh
    @adityamparikh ปีที่แล้ว +2

    Thanks for this amazing explanation on Spring Shell. How would you write tests for it?

  • @dragon_id_
    @dragon_id_ 3 หลายเดือนก่อน

    Thanks man. Your Turtorials are really GREAT. I saw your video on GraalVM Native Images and got motivated to start with Spring Shell, so I had the idea of building a simple CLI that executes system shell commands such as "apt-get update" and "apt-get upgrade" since i'm on a linux distro. However, I didn't find any helpful sections about this in Spring Shell docs (or i'm blind!) nor on the web. Could you please point me somewhere where I can find some help. Thanks again!

  • @pmorah
    @pmorah ปีที่แล้ว +3

    Great video.
    Why did you have to add reactive dependency?

  • @lobsterking747
    @lobsterking747 ปีที่แล้ว

    Great video

  • @satyarajawasthismart
    @satyarajawasthismart ปีที่แล้ว

    amazing. loved it be making much more helpfull videos.

  • @guillaumehusta4235
    @guillaumehusta4235 10 หลายเดือนก่อน +2

    Great video ! Is there a way to launch a command in non-interactive mode ?

  • @3r3bu5x9
    @3r3bu5x9 ปีที่แล้ว

    why does your intelli j look so different? what theme are you using? it's pretty cool

  • @dev.aaajit
    @dev.aaajit 6 หลายเดือนก่อน

    Can we disable the prompt shell `shell:>` ?
    So you can just pass the commands and arguments in single line like $ cli command sub-command arguments ?

  • @JanCharamza
    @JanCharamza 11 หลายเดือนก่อน

    Hello guys, do you know why default quit/exit commands doesn't work? I'm closing the app with custom method and use of System.exit(0), but would like to understand what is happening with the standard ExitRequest there.

  • @nicobonder
    @nicobonder 4 หลายเดือนก่อน

    Hi, how can implement this with Java 21? When I try to convert it to a native application I am seeing an error. I understand that maven compiler doesn't support Java21. "Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project demo: Fatal error compiling: error: release version 21 not supported" Thanks!

  • @RossieHoorn
    @RossieHoorn ปีที่แล้ว +1

    Hi Dan, why do we need an interface?

    • @Anbu_Sampath
      @Anbu_Sampath ปีที่แล้ว +2

      it's new Spring Framework feature 'Declarative Client or Interface Client' similar to Fiegn.

  • @ChaitaliJoshi-ed4ek
    @ChaitaliJoshi-ed4ek 4 หลายเดือนก่อน

    @DanVega ,getting error this error, org.jline : Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information) while running it on Mac OS in eclipse.
    can anyone please help me on this?

    • @thundaGawd
      @thundaGawd 4 หลายเดือนก่อน

      Run the application from your IDE or run the jar from your project's target folder (java -jar target/.jar).

  • @nijatSh
    @nijatSh ปีที่แล้ว

    When I run app, shell doesn't appear. Why it happens?

    • @Dave09182010
      @Dave09182010 2 หลายเดือนก่อน +2

      You need spring.shell.interactive.enabled=true in your application.properties file

    • @saisidharth454
      @saisidharth454 หลายเดือนก่อน

      Since Spring 3.3.x, they have disabled interactive shell by default. You need to add the above property mentioned in your application.properties file and it works fine.