Building Command Line Applications in Spring with Spring Shell

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 27

  • @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 👏🏻

  • @remivieux
    @remivieux 4 месяца назад

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

  • @aravshrivastava
    @aravshrivastava 9 месяцев назад +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!

  • @adityamparikh
    @adityamparikh Год назад +2

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

  • @memillin
    @memillin Год назад +5

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

  • @guillaumehusta4235
    @guillaumehusta4235 Год назад +3

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

  • @pmorah
    @pmorah Год назад +4

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

  • @Winter-Bear
    @Winter-Bear 23 дня назад

    Hi Dan Vega, Do you have any video which explains about building command-line implementation for a java program? I should run that command line implementation in any system. Please reply.

  • @dragon_id_
    @dragon_id_ 6 месяцев назад

    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!

  • @satyarajawasthismart
    @satyarajawasthismart Год назад

    amazing. loved it be making much more helpfull videos.

  • @dev.aaajit
    @dev.aaajit 9 месяцев назад +2

    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 ?

    • @joan2080
      @joan2080 26 дней назад

      do you have an answer for your question ?

  • @lobsterking747
    @lobsterking747 Год назад

    Great video

  • @3r3bu5x9
    @3r3bu5x9 Год назад

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

  • @cilhao
    @cilhao 28 дней назад

    Why did you have to run up a Netty Server on 8080 if you're running a CLI application? Also if that port is already in use the app won't run, I don't think that's needed.

  • @JanCharamza
    @JanCharamza Год назад

    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 7 месяцев назад

    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.

  • @mukundshukla5097
    @mukundshukla5097 Месяц назад

    I'm unable to see shell in terminal.. I followed the same steps
    edit:
    okay I figured it out.. we need change the application.properties and add this : spring.shell.interactive.enabled=true

  • @ChaitaliJoshi-ed4ek
    @ChaitaliJoshi-ed4ek 8 месяцев назад

    @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 7 месяцев назад

      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 5 месяцев назад +4

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

    • @saisidharth454
      @saisidharth454 4 месяца назад +2

      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.