在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:DiUS/java-faker开源软件地址:https://github.com/DiUS/java-faker开源编程语言:Java 100.0%开源软件介绍:Java FakerThis library is a port of Ruby's faker gem (as well as Perl's Data::Faker library) that generates fake data. It's useful when you're developing a new project and need some pretty data for showcase. UsageIn pom.xml, add the following xml stanza between <dependency>
<groupId>com.github.javafaker</groupId>
<artifactId>javafaker</artifactId>
<version>1.0.2</version>
</dependency> For gradle users, add the following to your build.gradle file. dependencies {
implementation 'com.github.javafaker:javafaker:1.0.2'
}
In your Java code Faker faker = new Faker();
String name = faker.name().fullName(); // Miss Samanta Schmidt
String firstName = faker.name().firstName(); // Emory
String lastName = faker.name().lastName(); // Barton
String streetAddress = faker.address().streetAddress(); // 60018 Sawayn Brooks Suite 449 This is a demo web application that uses the library. Javadochttp://dius.github.io/java-faker/apidocs/index.html ContributionsSee CONTRIBUTING.md Fakers
Usage with LocalesFaker faker = new Faker(new Locale("YOUR_LOCALE")); Supported Locales
TODO
LICENSECopyright (c) 2019 DiUS Computing Pty Ltd. See the LICENSE file for license rights and limitations. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论