MyBatis Generator failed to get comments when generating the corresponding entity class of Oracle Database

Recently, a problem was found when using mybatis generator to generate the entity classes corresponding to Oracle database. It is hereby recorded. Because the project uses swagger2, we want to generate the corresponding @ ApiMode and @ ApiModelProperty annotations through table annotations and field annotations when generating entity classes. H ...

Posted by Shendemiar on Thu, 19 Dec 2019 10:02:11 -0800

SpringBoot + mybatis multiple data sources

1. Create project For Eclipse platform, spring tool suite is installed   File - > New - > other - > spring boot - > spring starter project - > select jdk and other information - > Click Web, select Web, click SQL, select JPA, Mybatis, MYSQL, click next, Finish.   2. Document editing 2.1 modify pom.xml C ...

Posted by shdt on Tue, 17 Dec 2019 15:18:11 -0800

Research on Spring transaction configuration

I. configuration and analysis of spring+mybaits xml in the project Generally, we will configure in datasource.xml as follows, but the principle and purpose of each configuration item is not so clear. If not clear, there will be a pit in use, so we will explain these configuration items one by one (1)Configure data sources <bean id="dataS ...

Posted by Courbois on Tue, 17 Dec 2019 10:26:15 -0800

Use of Oracle database merge into: update if it exists, insert if it does not exist

1. In the actual application scenario, we will use: if the data is in the table, update the data; if the data does not exist, insert the data. In oracle, you can use the merge into implementation, and in mysql, you can use the ON DUPLICATE KEY UPDATE. Here, only the merge into implementation method in oracle is introduced. The sql syntax is a ...

Posted by xsgatour on Sun, 15 Dec 2019 08:44:30 -0800

The most elegant and simple way for java reflection to get parameter names with asm

Background description Recently, I wrote reflection-related code and wanted to get the name of the corresponding parameter, but found there was no particularly good way. jdk7 and before was not able to get parameter names through reflection. jdk8 is available, but there are many restrictions on specifying the-parameter startup parameter. I tri ...

Posted by salmanshafiq on Sat, 14 Dec 2019 01:13:44 -0800

Mybatis integrated spring detailed course (suitable for beginners)

Catalog 1. Integration ideas 2. Integrate the required jar package 3. Steps of integration 4. Two implementation methods of Dao development 6. Summary of Dao's development @ Mybatis integration of spring is actually the integration of SM in SSM framework. 1. Integration ideas The id ...

Posted by shakuni on Thu, 12 Dec 2019 04:40:54 -0800

Mybatis paging

Preface Paging can be said to be a very common function. Most mainstream databases provide physical paging methods, such as Mysql's limit keyword, Oracle's ROWNUM keyword, etc.; as an ORM framework, Mybatis also provides paging functions. Next, the paging functions of Mybatis are introduced in detail. RowBounds page 1. Introduction to rowb ...

Posted by pankirk on Tue, 10 Dec 2019 11:49:56 -0800

SSM framework integration

SSM framework integration in general Configure the web.xml file <!-- read applicationContext-*.xml configuration file --> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext-jdbc.xml</param-value> </context-param> <!-- Set ...

Posted by angel777 on Tue, 10 Dec 2019 09:52:43 -0800

JAVA implementation writing platform code generator

[CRUD is often written in the project, but in practice, I think if there is a complete code specification, it can be generated automatically and speed up the development efficiency The technical principle of code generator is not complicated. Generally, a template is written to generate a series of codes. I saw that the code genera ...

Posted by sara_kovai on Mon, 09 Dec 2019 18:21:59 -0800

MyBatis3.x Idea building

MyBatis was apache An open source project of iBatis In 2010, the project was migrated from apache software foundation to google code and renamed MyBatis. Moved to Github in November 2013. As an excellent orm framework, MyBatis is often compared with Hibernate. As a popular MyBatis, it avoids almost all JDBC code, manual parameter s ...

Posted by johnie on Sun, 08 Dec 2019 19:46:40 -0800