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

How Spring Micro Services can modify database passwords without restarting

Last article ( How configurations in SpringBoot projects refresh dynamically Please add a link description ), describes how to use the notification mechanism of spring cloud bus to dynamically refresh the configuration to the application service, and describes how to dynamically modify the database connection parameters without restarting the ...

Posted on Sat, 16 Nov 2019 02:14:02 -0500 by lucianbeauty

Organize the various implementations that can handle specific logic after the Spring IOC container is initialized

The core of Spring Framework is dependent on injection and facets; Spring Boot provides many default configurations and default conventions (conventions are better than configurations) on the basis of Spring Framework to reduce or reduce configurations for out-of-the-box use and quick start; Spring Cloud provides a large number of components wi ...

Posted on Fri, 15 Nov 2019 23:41:19 -0500 by efegue