Web server failed to start. Port 8080 was already in use. spring boot SOLVED

Web server failed to start. Port 8080 was already in use. spring boot SOLVED


Web server failed to start. Port 8080 was already in use. spring boot SOLVED

How to solve web server failed to start. port 8080 was already in use in spring boot is shown
#Springboot


Content

0.24 -> hello everyone in this video i will be showing  you how to solve the error web server failed to  
4.88 -> start port 8080 was already in use in spring boot  so i'm just having a like four lines of code over  
11.76 -> here just a rest controller and i'm having a  get mapping /a which just returns a string okay  
16.56 -> but i'm getting this error so the reason why we  are getting is because it's obvious from this  
20.8 -> because the port 8080 is already used by  some other application or background process  
25.52 -> so in order to solve this the first thing  what you will do is you need to go to your  
29.2 -> pom.xml and check whether you have installed all  the right dependencies if you have just deleted  
34.72 -> some of the dependencies that can also like cause  the error so first thing this is the first thing  
38.64 -> that you are going to do so once you have done  checking it and there isn't any problem over here  
42.8 -> the next thing what we are going to do is we are  just going to change the port so we get this error  
47.44 -> when our application is trying to run at port 8080  so instead of that we can change to some other  
52.72 -> ports let's say 8090 we won't be getting this  error so to change the port okay what you'll do is  
58.88 -> you need to go to this resources okay resources  folder over here and you click on this application  
63.76 -> dot properties so here what we will do is you  just specify server dot port equal to and here  
73.68 -> we're going to add eight zero nine zero okay just  add this line over here just save it control yes  
80 -> really important save it otherwise your changes  won't be getting effected so after saving it you  
84.16 -> can just run your program again and this time as  you can see i'm not getting any kind of error and  
90.8 -> here you can see there's a line specifying tomcat  started on port 8090 and started my application so  
96.88 -> if i just go to that port okay so it's localhost  colon8090 and my path was /a here and hit enter
109.36 -> so i'll be getting this text over here so that  this text corresponds to the text i have returned  
115.12 -> over here so i guess you can see this is triple h  and i'm getting this over here so i've just solved  
120.32 -> this error now so it's really simple you need to  just change the port by going to this application  
124.48 -> properties just add this line and you can add any  other port okay which isn't in use okay hopefully  
129.52 -> so i hope you would have found this video useful  I have also done many other programming videos  
132.72 -> in java c c plus plus python as well as  3d animation in blender so do check other  
137.28 -> videos of my channel subscribe and support  me it helps me a lot and thanks for watching

Source: https://www.youtube.com/watch?v=x-1jRGoU_ek