Creating a Spring Boot "Hello World" Application with IntelliJ IDEA

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • In this screencast, we’re going to create a simple Spring Boot Hello World application which will display some text locally in our browser.
    *Author: Helen Scott
    Discover more about IntelliJ IDEA's features for Spring: jb.gg/spring
    Download IntelliJ IDEA: jb.gg/download-intellij-idea
    Top 15 IntelliJ IDEA shortcuts: • Top 15 IntelliJ IDEA s...
    Join us:
    Website jb.gg/website
    Blog jb.gg/blog
    Twitter / intellijidea
    Facebook / intellijidea
    #intelliJIDEA #intelliJ #jetbrains #java #programming #springboot
  • Věda a technologie

Komentáře • 37

  • @franciscocernadasromero5130

    I've been using the 2020 version for a time, but with this upgrade you have crowned! very easy example and steps to reproduce and put in a future project to test it, good job and keep it up please!

  • @DanielGheorghitaBalan-lc2pw
    @DanielGheorghitaBalan-lc2pw Před 7 měsíci

    Awesome thank you!

  • @Viraj-pw4tz
    @Viraj-pw4tz Před 2 lety

    Nicely explained

  • @Luke_UPPX
    @Luke_UPPX Před 3 lety

    More video like this, simple steps

  • @youtubefan341
    @youtubefan341 Před 3 lety +5

    love this video

  • @programmingcheatsheet
    @programmingcheatsheet Před 2 lety +17

    Easy enough to follow along with, but I'd like to see future videos make more of an attempt to explain details. What is a spring rest controller? What is a TestRestTemplate? The details about the request mapping are glossed over. Not quite sure how adding a string to the new "HelloWorldController" class ties to the "HelloWorldApplication" class. This video seems weirdly targeted to a demographic that knows all these details about spring boot, yet whom can't write a "hello world" program.

    • @crackrokmccaib
      @crackrokmccaib Před rokem

      Exactly. Nothing is explained. It's just blah blah blah. I'm saying stuff and typing stuff. Not helpful at all.

  • @mfsniper2
    @mfsniper2 Před 2 lety +2

    I have a question about Option "New project", only IntelliJ IDEA 2021 "ULTIMATE VERSION" has option Spring Initializr? Community Version no more?

    • @aichabouchraabdoune963
      @aichabouchraabdoune963 Před 2 lety +1

      no cmmunity version has it too

    • @lokeshks5956
      @lokeshks5956 Před 2 lety +2

      I added Spring in community by installing spring plugin .. File -> Settings -> Plugins -> Spring Initializr

  • @aleksadacic
    @aleksadacic Před 2 lety +2

    i can't say this voice is beautiful but it makes me feel something

  • @user-fk7mt3ij5p
    @user-fk7mt3ij5p Před rokem +2

    im having an issue with the assert equals returning the same string it is instead
    returning this
    Expected :Hello World from Spring Boot
    Actual :{"timestamp":"2023-05-30T16:06:07.012+00:00","status":404,"error":"Not Found","path":"/"}

    • @adricozza
      @adricozza Před rokem +1

      It happens because the application is not reaching the server, and at the page localhost:8080 the test found the error instead of hello world string. Check that everything is written correct and that the controller file is at the same level of the helloworldapplication file.

  • @barfyman3Six2
    @barfyman3Six2 Před 2 lety +1

    Now record the exact same screencast but with gradle and kotlin

  • @saikirank6357
    @saikirank6357 Před rokem

    Hey how to use scala language instead of java ???

  • @vannakdy4974
    @vannakdy4974 Před rokem

    Thank

  • @JadeWisdom
    @JadeWisdom Před 2 lety +10

    I don't have an option for spring initializer

    • @saikishore6154
      @saikishore6154 Před 2 lety

      same problem

    • @satancros
      @satancros Před 2 lety +4

      for only intelliJ idea ultimate

    • @aroundtheglobe7720
      @aroundtheglobe7720 Před 2 lety +1

      You can generate spring initializer from their web page if you don't have ultimate version of intellij. Just type spring initializer and download the file once you set it up. In intellij, open that file and its the same.

  • @samim7373
    @samim7373 Před rokem

    Dis you skip how to add external spring library?

  • @shrishtisingh4009
    @shrishtisingh4009 Před 2 lety +1

    It was showing error in CheckHTTPResponse. "Failed to resolve org.junit..platform:junit.platform.launcher:1.8.2". How to resolve it?

  • @djamsterdam007
    @djamsterdam007 Před 2 lety +1

    "Hello World from Spring Boot" and "Goodbye from Spring Boot" Strings should be stored in String variable, in my opinion, nevertheless it's a great tutorial

  • @user-sn6uv9vw7f
    @user-sn6uv9vw7f Před rokem

    Not work

  • @crackrokmccaib
    @crackrokmccaib Před rokem +2

    Blah blah blah. Thanks for going 100 mph.

  • @semlon5266
    @semlon5266 Před 10 měsíci

    please make your produkts cheaper 😥😥😥😥

  • @souleymaneadellah1176
    @souleymaneadellah1176 Před 2 lety +9

    So all this shit just to print hello world???????? Thats why I'll never understand people who use Java. You can do this whole thing with 1 line of PHP.

    • @badscrew4023
      @badscrew4023 Před 8 měsíci +1

      Well, how else you gonna get this juicy and stable job of enterprise java developer? 1 line of code doesn't pay your bills.

    • @souleymaneadellah1176
      @souleymaneadellah1176 Před 8 měsíci +3

      @@badscrew4023 lol your replies reminded me of my old comment, now I am a spring feveloper lol. I get it about Java now.

    • @badscrew4023
      @badscrew4023 Před 8 měsíci

      @@souleymaneadellah1176😂

    • @chitranshsrivastava5880
      @chitranshsrivastava5880 Před měsícem

      ​@@souleymaneadellah1176 So how's java treating you now?

    • @souleymaneadellah1176
      @souleymaneadellah1176 Před měsícem

      @@chitranshsrivastava5880 lol I was so freakin dumb.

  • @karolsroka8957
    @karolsroka8957 Před 10 měsíci

    java: no suitable method found for getForObject(java.lang.String)
    method org.springframework.boot.test.web.client.TestRestTemplate.getForObject(java.lang.String,java.lang.Class,java.lang.Object...) is not applicable
    (cannot infer type-variable(s) T
    (actual and formal argument lists differ in length))