Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
EL を使用して GSP に文字列を表示しています。
${grails.util.Holders.config.dataSource.url}
最後の 10 文字だけを表示したいと思います。これを行う方法についてのアイデアはありますか?
ありがとう
${grails.util.Holders.config.dataSource.url[-10..-1]}
ドキュメントを参照してください: http://groovy.codehaus.org/JN1525-Strings