Generally, the font file is placed under /resouce, the browser warns that the parsing fails, and it is observed that "response context type is text/plaintext".
solve:
In tomcat or web.xml in your mind, add
<mime-mapping>
<extension>woff2</extension>
<mime-type>application/x-font-woff</mime-type>
</mime-mapping>
<mime-mapping>
<extension>woff2</extension>
<mime-type>application/x-font-woff</mime-type>
</mime-mapping>