How to add and share the function of Youdao cloud notes to your app
Article synchronization from http://javaexception.com/archives/34
How to add and share the function of Youdao cloud notes to your app
Question:
An open source notebook project before Leanote In, a user feedback wants to add the function of sharing to Youdao cloud notes, so that they can share their millet notes or other Notepad contents to t ...
Posted by conker87 on Sat, 23 Nov 2019 09:06:22 -0800
Python docx operation word file (*. Docx)
Catalog
Basic operation
Object relationship
Add styles
Chinese font Microsoft YaHei, Western Font Times New Roman
text-indent
Style title separately
Set hyperlink
Reference document
Basic operation
from docx import Document
from docx.shared import Inches
# ...
Posted by GarroteYou on Fri, 22 Nov 2019 11:23:17 -0800
Handwritten springioc (read configuration information of bean)
Let's start with the idea: read a configuration file in the form of a stream, parse and encapsulate the information in the stream into a MAP1 < string, BeanDefinition >. BeanDefinition contains the attribute information of the configuration file, build a factory, store the built bean object into another MAP2 < string, Object > by re ...
Posted by vaaaska on Fri, 22 Nov 2019 08:45:57 -0800
Spring dependency injection method (based on xml configuration)
Preface
There are three methods of Spring dependency injection:
Property injection (setter method injection)
Constructor injection (different ways of entering parameters)
Factory method injection (static and non static methods)
Spring dependency injection principle: using Java's reflection mechanism
Note: Spring can inject external resources ...
Posted by opalelement on Fri, 22 Nov 2019 01:46:02 -0800
[springboot development monomer web shop] 7. Multiple forms of commodity listing
Review above
Last Section We have implemented the functions of jd-like round-robin advertising and commodity classification, and explained the different injection methods. In this section, we will continue to realize our e-commerce business, the display of commodity information.
requirement analysis
First, before we start coding this section, l ...
Posted by webent on Thu, 21 Nov 2019 16:43:50 -0800
Android: in intent, start a new Activity explicitly through startActivity(Intent intent)
Intent: intention. It is generally used to start a new Activity. It can be divided into two types: explicit intent and implicit intent
To display Intent is to directly use "class name" to specify which activity to start: Intent intent = new Intent (this, activity. Class); where activity.class is to specify the activity to start
For ...
Posted by smsulliva on Thu, 21 Nov 2019 07:07:44 -0800
springboot learning: springboot quickly integrates swagger documents
@[toc]
brief introduction
Advantage
According to the swagger syntax, the back-end automatically generates beautiful interface documents.
Do interaction tests.
Inferiority
Intrusive, affecting program operation, especially when passing parameters.
Be careful
Swagger is divided into 1.2 version and 2.0 version, which are quite different. Swagger ...
Posted by ianitm on Thu, 21 Nov 2019 02:14:12 -0800
logback.xml dynamic configurator path
Catalog
1. Ordinary java program
2.spring boot application
1. Ordinary java program
logback.xml configured as follows
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<property name="LOGS_HOME" value="/opt/program/app/logback-demo/logs"/>
<!-- This value is passed in dynamically when th ...
Posted by coco777 on Wed, 20 Nov 2019 11:41:50 -0800
druid configuration of ssm+maven Ali open source project
What is Druid?
Druid is the best database connection pool in the Java language. Druid can provide powerful monitoring and extension functions.
Project configuration
1. Add dependency
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<vers ...
Posted by yujikaido on Wed, 20 Nov 2019 10:05:13 -0800
logback log file location dynamic specification
Reference resources: https://stackoverflow.com/questions/19518843/logback-configuration-via-jvm-argument
logback related configuration, where ${log ﹣ home} is the environment variable. When java starts the application, it can set its address dynamically by specifying java - dlog ﹣ home = "path".
<?xml version="1.0" encoding="UT ...
Posted by fizzwizz on Tue, 19 Nov 2019 13:27:35 -0800