Joke Collection Website - Public benefit messages - How to get the value in properties in Spring

How to get the value in properties in Spring

For example: You want to send a text message to the user, Dear XXX, you have successfully recharged XXX.

You can define the static variable private Static SMS="Dear name, you have successfully recharged XX."

When sending a text message to the user, String msg=SMS.replace("name" , variable value);