Fw-Commons a commons Java lib with spring boot framework, Supports using keycloak, filter, trace log, cached, minio server, exception handler, validate and call API with webclient
This README provides quickstart instructions on running fw-commons
on bare metal project spring boot.
def latest = "1.1.4" // or check the latest from maven central repository
//fw-commons
implementation("io.github.hoangtien2k3:fw-commons:$latest")
//spring-commons
implementation("io.github.hoangtien2k3:spring-commons:$latest")
//utils
implementation("io.github.hoangtien2k3:utils:$latest")
//data-utils
implementation("io.github.hoangtien2k3:data-utils:$latest")
//exception-handling
implementation("io.github.hoangtien2k3:exception-handling:$latest")
-
Correct and complete setup to start the program
application.yml
orapplication.properties
with CONFIG -
The reference documentation includes detailed installation instructions as well as a comprehensive getting started guide.
Here is a quick teaser of a complete Spring Boot application in Java:
@SpringBootApplication
@ComponentScan(basePackages = {"io.hoangtien2k3.commons.*"})
@ImportResource({"classpath*:applicationContext.xml"})
public class Example {
@RequestMapping("/")
String home() {
return "Hello World!";
}
public static void main(String[] args) {
SpringApplication.run(Example.class, args);
}
}
If you would like to contribute to the development of this project, please follow our contribution guidelines.