Generate Random values in Spring boot


In this tutorial we will look into the ways of generating a random string or integer values in Spring boot:

Find this project on Github

https://github.com/javacodenet/random-generator/


pom.xml


Application.java


RandomValues.java

Bean with random values injected from the configuration file.

application.properties

A configuration file containing random value definitions.

Output


Comments

Popular posts from this blog

Generate PDF From XML Or Java Object Using Apache FOP

Generate/Read an Excel file in Java using Apache POI