09 Configuring server port for microservices - Spring Boot Microservices Level 1

preview_player
Показать описание
Workshop recorded live on Jan 26, 2019. This course is still in progress.

How can we run two microservices on the same machine? We'll run into `port already in use" error, and we'll fix it by specifying a custom port.

Course: Spring Boot Microservices Level 1 - Communication and discovery

This course introduces you to building microservices with Spring Boot and Spring cloud. This is Level 1 - start here if you are completely new to building microservices in Spring.
Рекомендации по теме
Комментарии
Автор

I am amazed.
I saw this exact video a year ago just before I start fresh in my first job as a junior dev. Back then I was kiindaa understanding all these thing about configuring tomcat, .jar in production, etc etc...
Now I' m refreshing this for a better gig and oh boy, I understand all these things... It almost feels like I'm chit chatting with Kushik
"How was your day"?
"Nothing special, the usual stuff"
How different things are now after a year..oh boi...

eimaisklhros
Автор

What an awesome guy. He should give tutorials to the whole world ;)

radumarza
Автор

Excellent Content. Crisp and clear explanation . I just faced a small problem while doing the hands on as I created the controller in a separate package. I think its worth mentioning here that, if the controllers are created either in the same package or sub package of the spring boot main application java , then spring boot identifies the controller automatically else we have to add an annotation @ComponentScan in the main springboot application java file.

learningtogether
Автор

Superb explanation and relaxing voice... what else do you need, haha :D

dvt
Автор

way of learning is too easy here, Many Thanks Koushik.

priyodas
Автор

I am Kaushik's number #1 fan :-) First comment and first like...

skullwise
Автор

I really don't understand....for movie-catalog the url worked well, but for movie-info-service I get 404 when I try /movies/foo
I'm testing on the correct port, so I'm not mistakenly running on the other server
@RestController
@RequestMapping("/movies")
public class MovieResource {
@RequestMapping("/{movieId}")
return new Movie(movieId, "Test name");
}
}


The file is also in the same package, under the resources folder.
Can anyone help?

andrei-unyr
Автор

is the movie catalog service the api gateway?

omurduneto
Автор

i have try with below comment but geting an error


@RestController
@RequestMapping("/movies")
public class MovieInfo {




{
return new Movie(movieId, "test set");
}


}




This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu Jan 02 15:23:22 IST 2020
There was an unexpected error (type=Not Found, status=404).
No message available

saurabhgoyal
Автор

I still do not get it: when we run several microservice apps on the same machine, each of them starts with its own or a separate copy of a Tomcat? And those Tomcat copies are attached by default to the same physical port?

hyperborean
Автор

what happend if I have a very big system with many diferents microservices. If i use spring boot I have to assign to it one diferent port? We gonna have dozenz and dozens of ports used?

nolediganamimadre
Автор

how can i run one micro-service on multiple port. like catalog-API should be running on 8081, 8082, 8083.

shahjadealam
Автор

please share when to prefer Node.js and when to choose Spring boot

amitdubey
Автор

can we use boot to develop django microservice

priyankavaidya
Автор

Hi Kaushik, Saw you spring boot cli video, wherein you create spring boot applications using groovy files. Is there any way we can do the same using java classes.

ganeshradiga
Автор

excellent editing. unwanted moments are trimmed.

uma_r
Автор

Can we run multiple spring boot apps inside single tomcat server? If yes, how?

anurag
Автор

How to open multiple projects is Same window in intellij? Just as we do with eclipse?

thetechthirsty
Автор

Hello Kaushik Sir, Thanks for such a nice series of video on spring boot micro service. Its Really helpful. The way you explain, its print in mind. Can you please post some video on kafka, where we can call Microservice by kafka.

sumitrasahoo
Автор

can u please provide ppt of this project if possible?

vipularyaa