- Hands-On Spring Security 5 for Reactive Applications
- Tomcy John
- 74字
- 2021-07-23 18:59:21
Step 2—pom.xml changes
Open the pom.xml file and add the following code within the project tag (<project></project>):
<!-- Spring dependencies -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>5.0.4.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>5.0.4.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-crypto</artifactId>
<version>5.0.4.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>5.0.5.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>5.0.4.RELEASE</version>
</dependency>
<!-- Servlet and JSP related dependencies -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>javax.servlet.jsp-api</artifactId>
<version>2.3.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp.jstl</groupId>
<artifactId>javax.servlet.jsp.jstl-api</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
<!-- For datasource configuration -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-dbcp2</artifactId>
<version>2.1.1</version>
</dependency>
<!-- We will be using MySQL as our database server -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>6.0.6</version>
</dependency>
Build a setup on pom.xml in which we will be using jetty to run the application created.
<build>
<plugins>
<!-- We will be using jetty plugin to test the war file -->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.4.8.v20171121</version>
</plugin>
</plugins>
</build>
推薦閱讀
- RESTful Java Web Services Security
- 科技安全:戰(zhàn)略實踐與展望
- Kali Linux Social Engineering
- 信息系統(tǒng)安全檢測與風險評估
- 網(wǎng)絡(luò)安全應(yīng)急管理與技術(shù)實踐
- 網(wǎng)絡(luò)空間安全實驗
- Learning Devise for Rails
- 可信計算3.0工程初步(第二版)
- 數(shù)據(jù)安全架構(gòu)設(shè)計與實戰(zhàn)
- 捍衛(wèi)隱私
- 網(wǎng)絡(luò)空間安全法律問題研究
- Practical Internet of Things Security
- Practical Mobile Forensics
- 社會工程:防范釣魚欺詐(卷3)
- 網(wǎng)絡(luò)安全設(shè)計