MyBatis and Oracle,MySql,SqlServer insert data return primary key method

MyBatis and Oracle,MySql,SqlServer insert data return primary key method MyBatis Oracle MySql SqlServer insert return primary key MyBatis returns an auto increasing primary key when insert ing data. It can be realized through XML configuration, while different configurations of database are different. Let's take a lo ...

Posted by kef on Sun, 03 May 2020 10:14:58 -0700

How to implement search function in Java?

First of all, we need to make it clear that the search box sends a Get request based on keywords, and sends a Get request to the current page //The sample code request path is the current page path "/ product" <! -- search box get requests to search based on the keywords of the product name -- > <form action="/product" class ...

Posted by suthen_cowgirl on Sun, 03 May 2020 09:39:08 -0700

(4) -- color matrix for Android image processing

We know that adjusting the color matrix can change the color effect of an image. Image processing is largely looking for the color matrix of an image. We can not only process the image through ColorMatrix, but also modify the value of the matrix accurately to achieve color effect processing. The color matrix of 4X5 is ...

Posted by kath421 on Sun, 03 May 2020 06:03:59 -0700

Simple construction of struts 2 Framework (Introduction)

Simple construction of Struts (Introduction) Process summary: (struts 2 download: https://struts.apache.org/) (software requirements: install eclipse/myeclipse and tomcat) Guide Package: (in apps, blank case is the simplest package needed) Action class: (path: SRC > CN. Itcast. Hello (the package of the class) > class name) struts.xml: ...

Posted by petroz on Sun, 03 May 2020 05:07:15 -0700

Connect Servlet to JDBC to realize page Jump

1. First, build a static HTML page for display. The page is simple and only needs a form form <form action="Cc" method="post"> User name < input type = "text" name = "name1" > Password < input type = "password" name = "pass" > <input type="submit"> ...

Posted by Arc on Sun, 03 May 2020 03:00:03 -0700

Integration of Google map correct signature packaging posture

After integrating Google Map, everything is normal in debug mode. The map is displayed normally. After signing and packaging, the app runs and finds that the map is not displayed After a stack overflow, This is the solution The reason is that the applied Google map API [key] is placed in the debug folder, and there is no corresponding rel ...

Posted by Supplement on Sun, 03 May 2020 02:44:57 -0700

Recycle view of android Development Notes

reference material 1.Android RecyclerView uses full resolution to experience artistic controls http://blog.csdn.net/lmj623565791/article/details/45059587 2.RecyclerViewItemAnimators https://github.com/gabrielemariotti/RecyclerViewItemAnimators Explain Recently, I was working on projects for other departments, and ...

Posted by Visualant on Sun, 03 May 2020 01:20:18 -0700

Custom control -- composite control

First look at the renderings The practicability of this control is not considered here, mainly to learn the method of composition control. 1. The first thing to do is to create a layout file testtest.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/an ...

Posted by somo on Sat, 02 May 2020 22:21:12 -0700

The case of network programming based on HttpClient Download Text and picture download text and picture for Android

The case of downloading text and picture network programming based on HttpClient for Android 1, Operation effect 2, Implementation steps 1. Create android app DownloadTextImageByHttpClient 2, Main layout file activity main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://s ...

Posted by prasitc2005 on Sat, 02 May 2020 19:28:17 -0700

Multiline radio group

demand Implementation method If it is single row or single column, use RadioGroup+RadioButton directly But often the plan can't catch up with the change. The graph given by ui is this kind of multi line single choice One of the ways to think about it is gridview Here we use RecyclerView to encapsulate Finish all the processing, so t ...

Posted by rockroka on Sat, 02 May 2020 19:11:34 -0700