字符串模板为啥只有$没有#???


#1
fun main() {

  var user: USER = User
  var s = """ select * from user where user_name =   ${user.USER_NAME}   """
  print(s)

}


#2

你当是 Mybatis 吗…


#3

问题是为什么要直接拼接sql,不怕注入?


京ICP备16022265号-2 Kotlin China 2017 - 2018