Skip to content

Commit 8bdbaee

Browse files
committed
test controller
1 parent ffbab48 commit 8bdbaee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/src/main/java/info/xiaomo/redis/controller/TestController.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ constructor(private val dao: CommonRedisDao) {
3030
@RequestMapping(value = "get/{key}", method = arrayOf(RequestMethod.GET))
3131
fun find(@PathVariable("key") key: String): Result<String> {
3232
val value = dao.getValue(key)
33-
return Result(value)
33+
return Result(value!!)
3434
}
3535

3636
@RequestMapping(value = "add/{key}/{value}", method = arrayOf(RequestMethod.GET))

0 commit comments

Comments
 (0)