25. springboot sends email

Although SMS verification is now the most popular and commonly used method of verification, email verification is still indispensable and still one of the necessary functions of the website. Any registration verification, forgetting password or sending marketing information to users can use the e-mail function. In the early stag ...

Posted on Mon, 18 Nov 2019 14:47:17 -0500 by Dennis Madsen

JPA series 14: integrating Spring

Three ways of integration:   1. LocalEntityManagerFactoryBean: it is applicable to those projects that only use JPA for data access. The FactoryBean will work according to the JPA PersistenceProvider automatic detection configuration file. Generally, the configuration information is read from "META-INF/persistence.xml& ...

Posted on Mon, 18 Nov 2019 13:45:50 -0500 by phpfolk2003

5. Spring cloud integrates mybatis annotation method

Public address: java paradise 1. In the previous article, we learned about service provider, but we didn't just learn about service provider. In the middle, Hikari data source and spring cloud are used to integrate mybatis. However, when using mybatis in the previous article, the old method is still used, and the corresponding xml file of mapp ...

Posted on Mon, 18 Nov 2019 11:05:36 -0500 by allistera

[springboot development monomer web shop] 6. Commodity classification and round robin advertising display

Commodity classification & Round advertising Recently, I was trapped in the POC of OSGI technology. The update progress is a little slow. I hope you don't blame me. Upper segment We have implemented the front-end display after login, such as: Next, we will realize the function of the left classified column. Product category From the abov ...

Posted on Mon, 18 Nov 2019 06:52:00 -0500 by jawaking00

Spring boot integrates jdbc and mybatis

abstract The main purpose of this article is to record how to integrate JDBC and MyBatis in the spring boot project. I will use simple usage and test cases in the integration. After all, the purpose of this article is to integrate, rather than teach you how to use them. I hope you can forgive me a lot. General configuration The entity classes a ...

Posted on Sun, 17 Nov 2019 23:52:56 -0500 by 9three

springboot integrates mybatis plus MySQL

[foreword] note that the version of mybatis plus is related to the version of springboot. The version of springboot-2.1.4.RELEASE that I used at that time, and the version of 3.1.1 that mybatis plus used, directly overturned the car, which made me doubt the capital of life. Later, I changed it to the version of springboot-2.0.5.RELEASE... Othe ...

Posted on Sun, 17 Nov 2019 12:15:16 -0500 by BlackKite

Setting up ssm project configuration spring from scratch

This is my last one. You can click here to read it if you haven't read it https://www.jianshu.com/p/00b5633b8477 The last one is to configure web.xml. The core configuration is dispatcher servlet. The contextConfigLocation in it reads the xml configuration in the spring package of the project. <init-param> <param-n ...

Posted on Sat, 16 Nov 2019 17:02:50 -0500 by safra

Spring boot Jpa add object field use database default

jpa is used as the persistence layer framework. The database fields in the project have default values and non empty constraints, so it is necessary to save a complete object when saving objects. However, in development, we usually only save some special fields first, and use the database default values for the rest fields. If we directly use i ...

Posted on Sat, 16 Nov 2019 16:50:46 -0500 by biba028

Springboot + Websocket + Sockjs + Stomp + Vue + Iview to realize java back-end log display on front-end web page

Don't talk much, look at the code. I. pom.xml introduces spring boot websocket dependency 1 <dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-starter-websocket</artifactId> 4 </dependency> 2. WebSocketConfig configures the WebSocket message proxy endpoint, that is, ...

Posted on Sat, 16 Nov 2019 16:01:36 -0500 by Arc

Summary of problems related to Spring and mybatis integrated configuration files

Configure data sources <!-- To configure Druid data source --> <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close"> <property name="username" value="${jdbc.username}"></property> <property name="password" value="${jdbc.password}">&l ...

Posted on Sat, 16 Nov 2019 13:55:10 -0500 by badzv