Using spring security to deal with CSRF attacks

Status of CSRF vulnerabilities CSRF (Cross Site Request Forgery) cross site request forgery, also known as One Click Attack or Session Riding, usually abbreviated as CSRF or XSRF, is a malicious use of the website. Although it sounds like cross site scripting (XSS), it is very different from XSS. XSS utilizes trusted users within the site, whil ...

Added by nac20 on Thu, 05 Dec 2019 06:47:28 +0200

java implements word generation and pdf conversion

Preface This blog mainly solves the dynamic generation of word (docx format) in java background, and converts word into pdf and adds watermarking. Reflection The requirement of the project is to export pdf with watermarking. The form style is still a bit complicated. It was considered that itextpdf was used to generate pdf based on html, but ...

Added by renj0806 on Fri, 19 Jul 2019 04:42:13 +0300

How to get absolute path basePath from freemarker page

Source: https://segmentfault.com/a/1190000002967105 Traditional Relative Path Approach 1. freemarker acquisition system relative path mode Configuration in spring-mvc.xml <!-- FreeMarker View parsing such as return userinfo. . Configure the suffix name here ftl And view parser. --> <bean id="viewResolverFtl" class="org.springfr ...

Added by mjr on Thu, 23 May 2019 23:39:05 +0300