Hibernate environment configuration mapping database SQL server, Mysql database, test correct

Recently, I have to digest a little more knowledge. I write notes in my blog for easy viewing You can download the hibernate jar package you need on the official website Configuring Sqlserver database in Hibernate <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernat ...

Added by PHPMagician on Thu, 02 Jan 2020 01:53:46 +0200

Spring boot integrates cxf to publish web service and client call

Spring boot integrates cxf to publish webService 1. Look at the project structure chart   2. pom dependence of CXF 1 <dependency> 2 <groupId>org.apache.cxf</groupId> 3 <artifactId>cxf-spring-boot-starter-jaxws</artifactId> 4 <version>3.2.4</version> 5 </dependency>   3. Start to wri ...

Added by Gambler on Wed, 01 Jan 2020 12:29:25 +0200

iOS internationalization using Android xml file to oc multilingual file

Multiple languages need to be added to the project. Android character files are all put in. xml, which is well organized. iOS only needs to convert xml files into OC string files to use Using Python 3 to write a script, you can modify the xml file and OC file, and then automatically read and write the xml file to OC file Thi ...

Added by Whetto on Wed, 01 Jan 2020 11:02:17 +0200

A simple way to realize Android bottom navigation RadioGroup+Fragment

Please indicate: https://mp.csdn.net/mdeditor/82504849 Bottom navigation bar radiogroup + fragemt 1. First, create a new selector file in drawable, right-click new - > drawable resource file in drawable, and create a text color selector [u text] and four other picture selectors [u home] drawable, selector [u phone] drawab ...

Added by kanika on Wed, 01 Jan 2020 08:11:53 +0200

Android Development - Android Studio - front end introduction picture

Android Development - Android Studio - front end introduction picture 1. Create a new Activity named ImageViewActivity 2. Set the button in activity main.xml to 3. Declare ImageViewActivity in MainActivity and set click event. package com.example.ayb.helloworld; import android.content.Intent; import android.support.v7. ...

Added by Crazy Horse on Tue, 31 Dec 2019 18:06:26 +0200

Android uses MVP mode (I)

I studied MVP before, but it didn't work for a long time. Today I watched it again. In fact, MVP is the upgraded version of MVC. MVP includes M-Model-model, V-View-view and C-Controller-controller. Make a simple example, simple login. First, create a new project and create a layout. <?xml version="1.0" encoding="utf-8"?&gt ...

Added by Stickdragon on Tue, 31 Dec 2019 06:19:49 +0200

Principle and simple implementation of java agent technology

Note: This article defines the operation of adding corresponding logic before and after function execution as MOCK. 1. Introduction When communicating with QA classmates one day, I found that QA classmates have the need to stop the method for a period of time when calling for a method. I was curious about the functionality of this part, so I de ...

Added by lomokev on Mon, 30 Dec 2019 10:42:44 +0200

Download in webview using AsyncTask download (8.0 compatible)

Download in webview using AsyncTask download (8.0 compatible) Write a class to inherit Asynctask, and download its file with Httpconnection in doinbackground. Postexecute is to open the download file (apk) after the download is completed private class DownloadTask extends AsyncTask<String, Void, Void> { // Pass tw ...

Added by cjbeck71081 on Sun, 29 Dec 2019 21:32:32 +0200

C# LINQ Learning Notes 5: LINQ to XML

Extract this note from: https://www.cnblogs.com/yaozhenfa/p/CSharp_Linq_For_Xml.html And record the learning process for future reference. 1. Generating xml 1.1 Create simple xml /// <summary> /// CreateXml class /// </summary> public class CreateXml { /// <summary> /// Return xml File Path ...

Added by andrewgk on Sat, 28 Dec 2019 12:06:02 +0200

Struts2 file upload

Upload a single file Form: <s:form action="HandlerAction" method="POST" enctype="multipart/form-data"> <s:file name="profile" label="Head portrait" /> <%-- <s:file name="profile" label="Head portrait" accept="image/jpeg" size="102400" /> --%> <s:submit value="Submit" /> </s:form> method="POST& ...

Added by Bramme on Fri, 27 Dec 2019 04:44:36 +0200