Git Product home page Git Product logo

ineat-spring-boot-starter's Introduction

react-router

Ineat Lab Spring Boot Starter

Set of AutoConfigurations for spring-boot

Maven Central quality

coverage bugs code_smells duplicated_lines_density ncloc vulnerabilities reliability_rating security_rating

Why ?

The main idea of this library is to provide a set of Spring Boot AutoConfigurations for commons needs in business applications developments.

How to use this starter

The Maven group ID is com.ineat-group.lab, and the artifact ID is ineat-spring-boot-starter.

To add a dependency using Maven, use the following:

<dependency>
  <groupId>com.ineat-group.lab</groupId>
  <artifactId>ineat-spring-boot-starter</artifactId>
  <version>LATEST</version>
</dependency>

To add a dependency using Gradle:

dependencies {
  compile 'com.ineat-group.lab:ineat-spring-boot-starter:+'
}

List of available auto-configurations

You can see all our available configurations in your favorite IDE by taping ineat. and using the auto-completion (ctrl + space) into your application.yaml/properties : configurations

Monitoring

Inspired by Baeldung spring-performance-logging article, this starter provides a fast way to register

IMPORTANT : Because of these interceptors logs at TRACE level, you need to set your spring logging.level property to TRACE :

logging:
  level:
    com.ineat.lab.sample: TRACE
logging:
  level:
    com.ineat.lab.sample: TRACE
      
ineat:
  monitoring:
    trace:
      enabled: true # easily use, or not the interceptor
      pointcut-expression: execution(* com.ineat.lab.sample.**(..)) # set the pointcut expression according to AspectJ pointcut pattern

Result on logs :

2018-02-01 15:37:46.882 TRACE 3480 --- [nio-8080-exec-1] c.i.l.s.DemoApplication$SampleController : Entering method 'test' of class [com.ineat.lab.sample.DemoApplication$SampleController]
2018-02-01 15:37:46.884 TRACE 3480 --- [nio-8080-exec-1] c.i.l.s.DemoApplication$SampleController : Exiting method 'test' of class [com.ineat.lab.sample.DemoApplication$SampleController]


PerformanceMonitorInterceptor

ineat:
  monitoring:
    performance:
      enabled: true # easily use, or not the interceptor
      pointcut-expression: execution(* com.ineat.lab.sample.*.*(..)) # set the pointcut expression according to AspectJ pointcut pattern

Result on logs :

2018-02-01 15:39:29.975 TRACE 3480 --- [nio-8080-exec-1] c.i.l.s.DemoApplication$SampleController : StopWatch 'com.ineat.lab.sample.DemoApplication$SampleController.test': running time (millis) = 3


Want to contribute ?

If you uses our starter-kit and you want to contribute by adding others commons use-cases/needs auto-configuration for spring-boot, send us a pull request with an explanation of your feature.

ineat-spring-boot-starter's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.