We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffbab48 commit 8bdbaeeCopy full SHA for 8bdbaee
redis/src/main/java/info/xiaomo/redis/controller/TestController.kt
@@ -30,7 +30,7 @@ constructor(private val dao: CommonRedisDao) {
30
@RequestMapping(value = "get/{key}", method = arrayOf(RequestMethod.GET))
31
fun find(@PathVariable("key") key: String): Result<String> {
32
val value = dao.getValue(key)
33
- return Result(value)
+ return Result(value!!)
34
}
35
36
@RequestMapping(value = "add/{key}/{value}", method = arrayOf(RequestMethod.GET))
0 commit comments