spring-utils

Utilities commonly used in Spring applications

License

License

GroupId

GroupId

io.github.sivalabs
ArtifactId

ArtifactId

spring-utils
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

spring-utils
Utilities commonly used in Spring applications
Project URL

Project URL

https://github.com/sivalabs/spring-utils
Source Code Management

Source Code Management

https://github.com/sivalabs/spring-utils

Download spring-utils

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.sivalabs/spring-utils/ -->
<dependency>
    <groupId>io.github.sivalabs</groupId>
    <artifactId>spring-utils</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.sivalabs/spring-utils/
implementation 'io.github.sivalabs:spring-utils:0.0.2'
// https://jarcasting.com/artifacts/io.github.sivalabs/spring-utils/
implementation ("io.github.sivalabs:spring-utils:0.0.2")
'io.github.sivalabs:spring-utils:jar:0.0.2'
<dependency org="io.github.sivalabs" name="spring-utils" rev="0.0.2">
  <artifact name="spring-utils" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.sivalabs', module='spring-utils', version='0.0.2')
)
libraryDependencies += "io.github.sivalabs" % "spring-utils" % "0.0.2"
[io.github.sivalabs/spring-utils "0.0.2"]

Dependencies

compile (1)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-aop jar

Project Modules

There are no modules declared in this project.

spring-utils

This is a tiny utilities library with commonly used features in Spring applications.

How to use?

Add the dependency

Maven

<dependency>
    <groupId>com.github.sivalabs</groupId>
    <artifactId>spring-utils</artifactId>
    <version>0.0.1</version>
</dependency>

Gradle

compile group: 'com.github.sivalabs', name: 'spring-utils', version: '0.0.1'

LoggingAspect

Add com.github.sivalabs.springutils package to ComponentScan

@Configuration
@ComponentScan(basePackages={"com.github.sivalabs.springutils"})
public class AppConfig
{

}

Use @Loggable annotation to Class or Method that you want to log.

@Controller
@Loggable
public class MyController
{

}


@Service
public class MyService
{
    @Loggable
    public void doIt() {
    
    }
}

Enable DEBUG log level to com.github.sivalabs.springutils in application.properties.

logging.level.com.github.sivalabs.springutils=debug

Developer Notes

Procedure for deploying to Maven Central https://central.sonatype.org/pages/apache-maven.html

Create or update archetypes and set version to SNAPSHOT (ex: 1.0.0-SNAPSHOT)

Deploy SNAPSHOT version to https://oss.sonatype.org/content/repositories/snapshots/

spring-utils> mvn clean deploy

Deploy release version to Maven Central

spring-utils> mvn release:clean release:prepare
spring-utils> mvn release:perform`
io.github.sivalabs

SivaLabs

Versions

Version
0.0.2