Skip to main content

Installation

Get Started in minutes

To install and use our library, just run the following commands.

Add Dependency

 <dependency>
<groupId>io.github.bowerzlabs</groupId>
<artifactId>kraft-admin</artifactId>
<version>0.1.2</version>
</dependency>

Enable the library

kraft.kraft-admin.enabled=true
kraft.title=Dreamwheels Admin Dashboard

Scan/load both kraftadmin and your application.

@SpringBootApplication
@ComponentScan(basePackages = {"com.yourapplication.package","com.bowerzlabs"})
public class Application {

public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}

}

To kraftadmin static files are loaded into your application

.requestMatchers("/css/**", "/js/**", "/images/**", "/webjars/**").permitAll()