Commit cd47a2e5 authored by Angelo Veltens's avatar Angelo Veltens

use apache commons to generate random string

parent 8c33702e
......@@ -16,6 +16,7 @@ repositories {
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
compile 'org.apache.commons:commons-lang3:3.9'
compile 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.10.0'
runtime("com.h2database:h2:1.4.199")
testImplementation('org.springframework.boot:spring-boot-starter-test') {
......
package de.codecentric.ticketscanner;
import org.hibernate.cfg.NotYetImplementedException;
import org.apache.commons.lang3.RandomStringUtils;
import org.springframework.stereotype.Component;
@Component
public class RandomStringGenerator {
public String generate() {
throw new NotYetImplementedException();
return RandomStringUtils.random(8, true, true);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment