Read and write the node after customizing the xml configuration file in Winform
scene
Customize the xml configuration file in Winform and configure the access file path:
https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100522648
On the basis of the configuration and reading of the custom configuration file, we continue to read and write the configuration file.
The xml configuration file is as follows:
<? ...
Posted by PHPnewb_JavaAdept on Tue, 01 Oct 2019 00:49:00 -0700
Server resolves cross-domain requests, intercepts requests and resets response headers
On Using JS to Solve Cross-domain Problems
Server resolves cross-domain requests, intercepts requests and resets response headers
Server-side interceptor
package com.silence.util;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.Filter;
import javax.serv ...
Posted by majik_sheff on Tue, 01 Oct 2019 00:44:28 -0700
Spring Data JPA - Relational Query - Operating Multi-to-Multi Relational Relations
One) Bidirectional multi-to-many configuration
1.1: Configure many-to-many
Requirement roles have multiple menus, and menus belong to multiple roles
Annotation @ManyToMany used
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ManyToMany {
Class ...
Posted by NTFS on Mon, 30 Sep 2019 23:56:27 -0700
Introduction to mybatis: inserting data into database (eclipse version)
Mybatis Knowledge Reserve:
I. framework
Understanding: framework is actually a semi-finished product of an application, a set of components for you to choose and complete your own system. Simply put, use the stage set up by others to perform. Moreover, frameworks are generally mature, upgraded softwar ...
Posted by Grim... on Mon, 30 Sep 2019 21:05:38 -0700
Spring MVC+MyBatis+Spring+maven Integration
Links to the original text: https://my.oschina.net/u/1590001/blog/268237
1. First step. Deploy mybatis;
1.1 Download myBatis
MyBits predecessor is iBitis, which is a semi-automated O ...
Posted by nihal on Mon, 30 Sep 2019 16:43:19 -0700
Simple Use of Message Middleware ActiveMQ-Spring Integrated Development
1. spring configuration file for message acquisition by listener
Different from manual mode
<!-- Scanning package -->
<context:component-scan base-package="com.djc.jms" />
<!-- ActiveMQ Connection factory -->
<amq:connectionFactory id="amqConnectionFactory"
brokerU ...
Posted by nwp on Mon, 30 Sep 2019 15:57:59 -0700
Mybatis automatically generators Config. XML
Install plug-ins first
Eclipse: help - > Eclipse Marketplace... - > find input box, enter MyBatis Generator - > search completed, and click Install in the bottom right corner of the latest version (if it is Installed, you don't need to install it)
idea to be added...
Create an xml file un ...
Posted by eco on Mon, 30 Sep 2019 15:32:47 -0700
Anonymous Type of ASP.NET MVC Action Passing Value to View
In the process of using ASP.NET MVC, we must all have encountered a problem: how can our Action pass anonymous type values to the view, which can not be achieved without special processing.
Next, let's look at an example:
In our control:
using System.Collections.Generic;
using System.Web.Mvc;
namespace TianYa.DotNetShare.MvcDemo.Contro ...
Posted by Elemen7s on Mon, 30 Sep 2019 14:44:23 -0700
Java Server Establishes Long Links as Web Socket Client
In recent projects, web socket communication between Java server and c++ is needed. The plug-in of java_websocket.client.WebSocketClient solves this requirement well.
First, you need to introduce this dependency in the pom.xml file:
<dependency>
<groupId>org.java-websocket</group ...
Posted by turpentyne on Mon, 30 Sep 2019 09:04:38 -0700
Springboot 2.1.7 integrates mybati 3.5.2 with MySQL 8.0.13
Springboot 2.x has been released for some time, where bloggers use Springboot 2.1.7 to integrate mybatis 3.5.2 and use MySQL 8.0.13 as the database.
1. Import dependency
<!--mysql-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.13&l ...
Posted by mullz on Mon, 30 Sep 2019 08:58:24 -0700