TwitterAppSettings

TwitterAppSettings represents the consumer key and consumer secret. It is a kind of identity for our application, from Twitter's perspective. Our model is pretty simple and must look like this:

data class TwitterAppSettings(val consumerKey: String,val consumerSecret: String)

Good job, our models are ready. It is time to produce the objects for the Spring Container. We will do that in the next section.

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.