0% found this document useful (0 votes)
5 views4 pages

Dependency

The document provides a list of dependencies for a Java Spring Boot application, including libraries for JPA, MySQL, JWT, Swagger, validation, H2 database, mail services, AWS SDK, and Spring Cloud for microservices. It also includes application properties for database configuration, mail settings, and Eureka server/client setup. Additionally, it outlines steps for email password configuration and important topics related to Spring framework features.

Uploaded by

uu061435
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views4 pages

Dependency

The document provides a list of dependencies for a Java Spring Boot application, including libraries for JPA, MySQL, JWT, Swagger, validation, H2 database, mail services, AWS SDK, and Spring Cloud for microservices. It also includes application properties for database configuration, mail settings, and Eureka server/client setup. Additionally, it outlines steps for email password configuration and important topics related to Spring framework features.

Uploaded by

uu061435
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

// LomBook Dependency

<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
// JPA Dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>

// MYsql Dependency

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.29</version>
</dependency>

// JWT Dependency

<!-- https://mvnrepository.com/artifact/com.auth0/java-jwt -->


<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>4.0.0</version>
</dependency>
// Swagger Dependency new version

<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>3.0.0</version>
</dependency>

// Swagger Dependency old version

<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.6.1</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.6.1</version>
<scope>compile</scope>
</dependency>

// Validation part dependency (Regex);

<!-- https://mvnrepository.com/artifact/javax.validation/validation-api -->


<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
// H2 Database

<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>

// Mail Dependencys

<!-- https://mvnrepository.com/artifact/javax.mail/mail -->


<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.7</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>

{Or}

<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.5.0-b01</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>

{Or}
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
//password encoder
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
</dependency>

//AWS Depency
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>1.11.586</version>
</dependency>
//Application properties

spring.profiles.active=dev
spring.devtools.livereload.enabled=true
environment=COMMON
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://localhost:3306/employeepayroll
spring.datasource.username=root
spring.datasource.password=password
spring.jpa.properties.hibernate.dialect =
org.hibernate.dialect.MySQL5InnoDBDialect
spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER

//Swagger Link

http://localhost:8080/swagger-ui.html

//app password mail configuration set environment varialble in

Follow these steps

*-->Email password getin go to email-manageaccounts->security->2-step


verification ->appPassword ->Produce one password
*-->click configuration ->Modify option->Add environment veriables

[email protected];Password=nziythetigcpvwka;username=root;pwd=Sravani@6086

// IMP topics

Autowiring
Spring AOP
DI in spring
spring JMS
Spring rabbitMQ

// Got Any repository error paste it like this

@EnableJpaRepositories("BasePackegeName.repository")-- > Adding the main class


@Repository ---> Addig the repository class

// Mail Properties

spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.required=true
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.ssl.trust=smtp.gmail.com
spring.mail.host=smtp.gmail.com
spring.mail.port=587
spring.mail.username=<gmail_id>
spring.mail.password=<gmail_password>
spring.mail.properties.mail.smtp.ssl.trust=smtp.gmail.com
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.required=true
smtp.starttls.enable=true

// MicroServics Dependencys
// property-->

<spring-cloud.version>2021.0.3</spring-cloud.version>
// Client -->Annotation @EnableEurekaClient on main class
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
// Server --> Annotation @EnableEurekaServer on main Class
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
</dependency>
// After Depency add these

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
// Application Properties

eureka.client.registerWithEureka = false
eureka.client.fetchRegistry = false
server.port = 8761

You might also like