The Way to SSM Learning--Mybatis Day 3_Dynamic sql Statement

I. where and if tags 1. New Method in IUserDao Interface 2. Write in IUserDao.xml test inside if here is the condition of the judgement statement and the parameter name inside corresponds to the field in the java file instead of the databaseSplicing of statements with sql content in if tag Where ...

Posted on Sun, 12 Jan 2020 20:34:05 -0500 by saras

goweb session control

Session control HTTP is a stateless protocol. The server cannot record the browser's access status, that is, the server does not It can distinguish whether the two requests are made by one client. Such a design seriously hinders the design of Web programs. For example, we bought a pair of trousers and a mobile phone when we went online shopping ...

Posted on Sun, 12 Jan 2020 06:49:01 -0500 by mwdrago

Quick start to mybatis framework

Through the quick start example, we found it very easy to use mybatis, because you only need to write the Dao interface and follow the mybatis requires to write two configuration files to realize the function. It's much more convenient than our previous jdbc. (when we use annotations, we will It's simpler. Just write a mybatis configuration f ...

Posted on Sat, 11 Jan 2020 12:28:09 -0500 by tomkleijkers

[tool Script] in target detection, VOC format data is transferred to COCO format data. Pro test! No bug! No mistake!

When we do target detection, sometimes we need to convert our VOC training data to COCO format. Here we provide the corresponding script, pro test, and error free! instructions: 1) VOC? CLSES: sets the class name of your own dataset. 2) voc2007xmls: Specifies the path of xml file in VOC format dat ...

Posted on Sat, 11 Jan 2020 12:19:44 -0500 by neroag

Spring framework learning (3.2) AOP return notification, exception notification, surround notification

Preface Record the learning process, Previous section In the previous section, pre notification is implemented based on xml configuration file AOP implementation based on XML configuration file Return notification The return notification is executed after the execution of the connection point. Whe ...

Posted on Sat, 11 Jan 2020 10:14:36 -0500 by Tjk

Spring MVC basic operation 1

Technological process The controller receives the client's request, calls the Model code to complete the relevant logical operation and returns it to the controller. The controller completes the view rendering in combination with the view, and displays the results to the client Realization principle ...

Posted on Sat, 11 Jan 2020 07:45:19 -0500 by hhoeksma

Spring AOP based on AspectJ

brief introduction AspectJ is an AOP framework based on Java language. Spring 2.0 added support for AspectJ pointcut expressions. Because AspectJ did not appear in spring 1.0; Support for annotations has been added in AspectJ 1.5, allowing you to define facets directly in the Bean class. New version of Spring framework We all use AspectJ to dev ...

Posted on Sat, 11 Jan 2020 07:29:42 -0500 by -Karl-

Android practical simple news client -- main interface design

Copy instance address: SimpleNews This is a github open source project. The original project has four modules. My imitation here One (News). Learn MD development and MVP architecture. Home page layout: Here we mainly use toolbar and DrawerLayout to achieve the effect of navigation bar and sideslip. ...

Posted on Sat, 11 Jan 2020 05:06:19 -0500 by dustout

Tomcat access project changed from http to https settings

1. Mr. Cheng's certificate # First switch to the certificate file path: $ cd /app/tomcat-8.5.39/ # Generate certificate file: $ keytool -genkey -alias tomcat -keyalg RSA -keypass AAyxl123 -storepass AAyxl123 -keystore tomcat-https-server.keystore -validity 36500 # Certificate Author ...

Posted on Sat, 11 Jan 2020 00:13:21 -0500 by ready2drum

Configuring MyBatis with XML

>Step 1: two packages need to be forerunner before configuration >MyBatis-3.2.2.jar MyBatis framework >Mysql-connector-java-3.1.10-bin.jar JDBC Driver >Step 2: configure the environment Under the mybatis-config.xml file, configure the following as the original state of the XML file <?xml version="1.0" encodin ...

Posted on Fri, 10 Jan 2020 13:59:04 -0500 by ozconnect