ali-bouali / springboot-3-micro-service-demo Goto Github PK
View Code? Open in Web Editor NEWMicro services architecture with spring boot 3
Home Page: https://aliboucoding.com/courses
License: MIT License
Micro services architecture with spring boot 3
Home Page: https://aliboucoding.com/courses
License: MIT License
want to express my gratitude for the work you've done with the code. It has been incredibly helpful in bringing my project to life. However, I noticed that you didn't include a license with it. I would like to ensure that I can submit my code as a university project without any legal issues.
Therefore, I kindly request that you add a license to your work. Thank you for understanding! Without your license, I will not be able to submit my code."
package com.alibou.school.client;
import com.alibou.school.Student;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import java.util.List;
@FeignClient(name = "student-service", url = "${application.config.students-url}")
public interface StudentClient {
@GetMapping("/school/{school-id}")
List<Student> findAllStudentsBySchool(@PathVariable("school-id") Integer schoolId);
}
I've encountered an issue with my Feign client setup when working with a service registered in Eureka. The current configuration uses the url attribute to specify the endpoint, which feels like hardcoding and lacks the elegance of using the service name as the host.
I want to configure the Feign client to dynamically use the service name registered in Eureka without specifying the URL directly. However, when attempting to remove the url attribute, the framework defaults to accessing the resource on port 80, despite setting server.port=8090 in the configuration file of the student service.
Any assistance or guidance on resolving this issue would be greatly appreciated. Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.