Change Port on a Spring Boot Application when using intelliJ

Change Port on a Spring Boot Application when using intelliJ 



Two ways to change the port that the embedded Tomcat is using in a Spring Boot Application.

The first way is to modify the application properties in the resources folder:

Update application properties to change port
Update application props in Spring Boot Application



There are a couple issues with this approach.  You might only want this port change in your local environment and if you check it in by accident you might break things.


Alternatively, you can use a command line parameter.

Go to Run -> Edit Configurations -> VM options

Then enter in the following argument:

-Dserver.port=8090


Then click apply and OK and attempt to run the application again.

Update port on Spring Boot application using VM option
Update port using VM option



Comments

  1. Thanks for providing such a great Information, you can see, we also provide
    Peptide Synthesis

    ReplyDelete
  2. Such a wonderful blog on Machine learning . Your blog have almost full information about Machine learning .Your content covered full topics of Machine learning that it cover from basic to higher level content of Machine learning . Requesting you to please keep updating the data about Machine learning in upcoming time if there is some addition.
    Thanks and Regards,
    Machine learning tuition in chennai
    Machine learning workshops in chennai
    Machine learning training with certification in chennai

    ReplyDelete
  3. Sorry tried this not working. I am new using Intellij and Spring Boot

    My execution just stopped. No mistake no error.

    ReplyDelete
  4. I feel this article have given such a lot of vital info for me. And I am satisfied studying your article. However wanna commentary on few general things, The website style is ideal, the articles are truly nice.
    Interior Designers in Chennai | Interior Decorators in Chennai | Best Interior Designers in Chennai | Home Interior designers in Chennai | Modular Kitchen in Chennai

    ReplyDelete
  5. This is really a big and great source of information. We can all contribute and benefit from reading as well as gaining knowledge from this content. Just amazing
    experience. Thanks for sharing such nice information.
    Event Management in Pondicherry | Wedding Decorators in Trichy | Wedding Photographers in Trichy | Wedding Planner in Pondicherry | Wedding Decorators in Pondicherry | Candid Photography Pondicherry | Wedding Photographers in Pondicherry

    ReplyDelete
  6. good article about data science has given it is very nice thank you for sharing.
    Data Science Training in Hyderabad

    ReplyDelete
  7. Soma pill is very effective as a painkiller that helps us to get effective relief from pain. This cannot cure pain. Yet when it is taken with proper rest, it can offer you effective relief from pain.
    This painkiller can offer you relief from any kind of pain. But Soma 350 mg is best in treating acute pain. Acute pain is a type of short-term pain which is sharp in nature. Buy Soma 350 mg online to get relief from your acute pain.

    https://globalonlinepills.com/product/soma-350-mg/


    Buy Soma 350 mg
    Soma Pill
    Buy Soma 350 mg online



    Buy Soma 350 mg online
    Soma Pill
    Buy Soma 350 mg

    ReplyDelete
  8. smart outsourcing solutions is the best outsourcing training
    in Dhaka, if you start outsourcing please
    visit us: freelancing course in bangladesh
    outsourcing training
    outsourcing training in bangladesh

    ReplyDelete
  9. Hiiii....Thanks for sharing Great info....Nice post...Keep move on...
    Python Training in Hyderabad

    ReplyDelete
  10. I went through your blog its really interesting and holds an informative content. Thanks for uploading such a wonderful blog.
    data science certification

    ReplyDelete
  11. Nice Post

    We are the best natural mattress offer Latex Mattress

    ReplyDelete
  12. smart outsourcing solutions is the best outsourcing training
    in Dhaka, if you start outsourcing please
    visit us: Freelancing training in bangladesh
    Outsourcing training in dhaka
    Outsourcing training in bangladesh

    ReplyDelete
  13. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    top microservices online training

    ReplyDelete
  14. Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your site? My website is in the very same area of interest as yours and my visitors would genuinely benefit from some of the information you present here. Please let me know if this ok with you. Thanks a lot!
    Orange County wedding videography

    ReplyDelete
  15. I feel satisfied to read your blog, you have been delivering a useful & unique information to our vision.keep blogging.
    Digital Marketing Course In Kolkata

    ReplyDelete
  16. I really like looking through a post tv that can make people think. Also, thank you for permitting me to comment!

    ReplyDelete
  17. The next time I examine a weblog, I wish that it does now not fail me genuinely as a good deal as this specific one. I imply, I comprehend it was my choice to observe, despite the fact that I definitely believed you will likely have some aspect beneficial to speak about. click All I listen is a gaggle of whining about some thing you may restore if you have been now not too busy seeking out attention.

    ReplyDelete

  18. TeaTv Apk Is Another One Of The Best Online Streaming Application For Smartphone Users. This Application Is Available For Android & IOS Users. Also, You Can Connect This Application Easily With Amazon Firestick, Android Smart TVs, Start Settop Box, Etc. There are more apk to online streaming is Mediabox apk for smartphone users ( Android and ios ) and
    Best Wishes Quotes 
    Watch Free online Movies 
    onhax 
    onhax android 
    Hulu Apk 

    ReplyDelete
  19. Really Very helpful Post & thanks for sharing & keep up the good work.
    Oflox Is The Best Digital Marketing Company In Dehradun Or Website Design Company In Dehradun

    ReplyDelete

  20. This information is really awesome thanks for sharing most valuable information.
    Microservices Online Training
    Microservices Training in Hyderabad

    ReplyDelete
  21. It is actually a great and helpful piece of information about Java. I am satisfied that you simply shared this helpful information with us. Please stay us informed like this. Thanks for sharing.

    Java training in chennai | Java training in annanagar | Java training in omr | Java training in porur | Java training in tambaram | Java training in velachery

    ReplyDelete
  22. wonderful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article resolved my all queries Spring Boot Online Training

    ReplyDelete
  23. Interesting blog post. It was informative. Thanks for sharing...

    accounting firm in dubai

    ReplyDelete
  24. This comment has been removed by the author.

    ReplyDelete
  25. Goodworklabs has offered excellent Java development services in India
    for more than half a decade. With our practical experience in the Java field, qualified programmers from Goodworklabs are well versed in the development of distinctive Java web applications.

    ReplyDelete
  26. Your website has a unique design. Please check my latest post on accounting firm in dubai and let me know what you think.

    ReplyDelete
  27. Very Interesting blog. Thanks for sharing this blog. You can also go through blog which is related to this which is providing variety of movies also. For details you can visit our official website.

    ReplyDelete
  28. Very Interesting blog. Thanks for sharing this blog :

    Sanitization Services Dubai

    ReplyDelete
  29. Wow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also.

    Data Science Course

    ReplyDelete
  30. It is perfect time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or tips. Perhaps you could write next articles referring to this article. I want to read more things about it!

    Data Science Training

    ReplyDelete
  31. I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.
    Data Science Certification in Bangalore

    ReplyDelete
  32. Thank you for sharing this informative post. Looking forward to read more.
    Web Design and Development Company

    ReplyDelete
  33. Lockdown is running in the whole country due to coronavirus, in such an environment we are committed to provide the best solutions for QuickBooks Support Phone Number.
    Contact QuickBooks technical Support Phone Number to get in touch.
    Dial QuickBooks Toll free Number : 1-844-908-0801

    ReplyDelete
  34. wonderful article poster blog. keep posting like this with us.We offer the most budget-friendly quotes on all your digital requirements. We are available to our clients when they lookout for any help or to clear queries.

    Best SEO Services in Chennai | digital marketing agencies in chennai | Best seo company in chennai | digital marketing consultants in chennai | Website designers in chennai

    ReplyDelete
  35. Nice Blog !
    Dealing with QuickBooks Payroll SSL Error or QuickBooks Error code. Make a call to our QB experts at 1-855-6OO-4O6O. Users may encounter Errors when he/she tries to update, install or download the QuickBooks Payroll.

    ReplyDelete
  36. Nice Blog !
    While using QuickBooks Payroll is if the user has entered an Incorrect pin in the Payroll, they may come across QuickBooks Payroll Error 2002 1-855-6OO-4O6O.

    ReplyDelete
  37. Very interesting post, I get great knowledge from this post.
    thanks for shearing with us.
    GMAT online Training
    GMAT coaching in hyderabad

    ReplyDelete

Post a Comment

Popular posts from this blog

How to set up a SQL Server 2008 Local Database

Add Guava Cache to Spring Boot to Cache Method Calls