Java Web generates Word document (freemarker mode)
First, add the following dependency to the pom file (if not the Maven project, just import the jar package into the project)
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.23</version>
</dependency>
1. Create a word document with ...
Posted by ptbsG_Man on Fri, 06 Dec 2019 09:36:59 +0100
js format xml and highlight keywords
w3school XML DOM - DOMParser object
DOM parser parses XML tags to create a document.
Constructor
new DOMParser()
The domparser object parses the XML text and returns an XML Document object. To use DOMParser, instantiate it with a constructor without arguments, then call its parseFromString() method:
var doc = (new DOMParser()).parseFromString( ...
Posted by bluegray on Tue, 03 Dec 2019 10:33:22 +0100
spring learning summary
This article continues to explain the foundation of IOC in the previous article. This article mainly introduces the implementation of IOC with zero configuration. Now I believe that there is no xml configuration file in all projects. Don't talk much nonsense. Learning together
Code example
BookDao.java
package com.kevin.spring.demo1.dao;
/**
...
Posted by future_man on Tue, 03 Dec 2019 02:46:55 +0100
Android project actual battle welcome interface
Welcome interface
First of all, import the picture of the welcome interface into the drawable directory. When importing, Android Studio will prompt as follows
drawable
I haven't figured out the details yet. I will fill in this part again after understanding. Here I choose the first one
Then create a package named activity, and create SplashActi ...
Posted by PierceCoding on Mon, 02 Dec 2019 18:50:27 +0100
Solve the problem that maven cannot download the dependent jar package
Background:
There is a maven private server built in the company, and a core jar package has been made. At the beginning, it was XXX core.1.0.0.snapshot version, which can be used normally in both local and project environments. In order to support the launch and release a stable version, XXX core.1.0.0.jar.
The local compilation is normal, t ...
Posted by bluedot on Mon, 02 Dec 2019 18:42:27 +0100
Automatic filling of SMS verification code in Android
Copyright notice: This is the original article of the blogger. It can't be reproduced without the permission of the blogger. https://blog.csdn.net/u010046908/article/details/47724807
Automatic filling of SMS verification code in Android
Because ...
Posted by p-co on Mon, 02 Dec 2019 15:53:31 +0100
QBC query of Hibernate
Customer.java
public class Customer {
public Customer() {
super();
// TODO Auto-generated constructor stub
}
public Customer(String cust_name, String cust_source) {
super();
this.cust_name = cust_name;
this.cust_source = cust_source;
}
private Long cust_id;
private String cust_name;
private String cust_so ...
Posted by Nat on Mon, 02 Dec 2019 14:56:22 +0100
Implementation of two data sources: SpringMVC+Mybatis
I. configuration file structure
First of all, the structure of the configuration file is as follows
Here are a few key configurations
1. jdbc.properties
#============================================================================
# datasource 1
#============================================================================
#Da ...
Posted by nitharsanke on Sun, 01 Dec 2019 20:53:48 +0100
mybatis implements the user-defined sql parameterization and binds the parameters within the parameters
In some business scenarios, multiple tables are needed to perform statistical operations jointly. In such scenarios, the logic of sql is often complex, and it is difficult to write it out easily by using mybatis. At the same time, various business variables are very large, so it is a little weak to deal with it based on mybatis. ...
Posted by loveitandhateit on Sat, 30 Nov 2019 11:12:16 +0100
cas-overlay-template4.2 build single sign on connection to Oracle database (3. Connect to Oracle database configuration)
1. It is introduced in pom.xml. Since the ojdbc6.jar package cannot be imported directly in the POM file, Download ojdbc6.jar and import it manually in WEB-INF/lib under the overlays directory
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-support-jdbc</artifact ...
Posted by marf on Fri, 29 Nov 2019 20:10:43 +0100