e-java codeBlock_bY9V thin-scrollbar"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#F8F8F2"><span class="token plain">@RestController</span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain">@RequestMapping(&quot;/hello&quot;)</span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain">@PostAuthorize(&quot;hasAuthority(&#x27;class&#x27;)&quot;)</span><br></span><span class="token-line" style="color:#F8F8F2"><span class