tag:blogger.com,1999:blog-23435402.post3511172080358829163..comments2023-10-07T19:18:13.956-07:00Comments on Judge Mental: Escaping property placeholders in Spring XML configJoshua Caplanhttp://www.blogger.com/profile/12633768084672573909noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-23435402.post-40932927757266244212013-04-03T07:26:01.105-07:002013-04-03T07:26:01.105-07:00Thanks!Thanks!Adrien Chttps://www.blogger.com/profile/16689133328665272068noreply@blogger.comtag:blogger.com,1999:blog-23435402.post-40957904728962981272012-02-05T20:23:09.940-08:002012-02-05T20:23:09.940-08:00Although I haven't tried this simpler techniqu...Although I haven't tried this simpler technique, it looks effective because you're again fooling the very simple scanner Spring uses to find "${". Thanks for the tip!Joshua Caplanhttps://www.blogger.com/profile/12633768084672573909noreply@blogger.comtag:blogger.com,1999:blog-23435402.post-31755433938020577532012-02-05T13:46:11.328-08:002012-02-05T13:46:11.328-08:00Here's a simpler syntax for the same basic app...Here's a simpler syntax for the same basic approach:<br /><br /><constructor-arg name="expression" value="Hello, #{'$'}{customerName}!"/><br /><br />That is, escape <b>$</b> with <b>#{'$'}</b>rustynut1https://www.blogger.com/profile/05447262393541265566noreply@blogger.com