相关疑难解决方法(0)

java属性文件,为一个属性使用多行

我将sql存储在属性文件中,并使用spring注入它,这有效:

someSQL = select result from myTable where y = 2 and x = ? order by z
Run Code Online (Sandbox Code Playgroud)

但为了便于阅读,我想要这个:

    someSQL = select result 
              from myTable 
              where y = 2  
              and x = ? 
              order by z
Run Code Online (Sandbox Code Playgroud)

我需要使用哪种正确的文本格式?

java spring properties

28
推荐指数
3
解决办法
2万
查看次数

标签 统计

java ×1

properties ×1

spring ×1