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.
私は@Requestparam /register?name=newnameページから渡しています。しかし、次にページ/register/confirmを呼び出すと、次のようにURLにパラメーターが表示され/register/confirm?name=newnameます。これを回避する方法は?
@Requestparam
/register?name=newname
/register/confirm
/register/confirm?name=newname
最近同じ問題が発生しました。これはname、のパスと混同されているために発生する可能性があり@ModelAttributeます。ModelAttribute同じ見方でそのようなものはありますか?
name
@ModelAttribute
ModelAttribute
あなたの見解がどのように機能するかはわかりませんが、(まだの場合は)ではなく、@RequestParamとして参照することをお勧めします${param.name}name
@RequestParam
${param.name}