Start and call of Spring Boot
[eye]
1. A way to start Spring BootService startup class
package com.npc.rest;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
/**
* Frozen
* 2020-1-29
*/
/**
* Previously, users used three annotations to ...
Posted by blakey on Wed, 29 Jan 2020 07:39:19 -0800
Spring Boot configuration unified format Result return value
In web development, the separation of front and back development has been deeply rooted in the hearts of the people. Such a development mode is very useful for the development of elegant and beautiful web applications. I have consulted some materials on the Internet and learned to use the unified format ...
Posted by bobbybrown on Wed, 15 Jan 2020 19:52:49 -0800
Getting Started with the web Front End in Practice: Vertical and Horizontal Centering with Variable Heights and Widths of CSS, 9 Ways to Summarize
Vertical centering is a common topic in CSS and is often mentioned during interviews.So today, let's talk about nine different ways of centering.
Common flex, transform, absolute, and so on.There are also grid layouts for CSS3.There are also pseudo element methods, yes, you can read them correctly:: after and:: before can also achieve centerin ...
Posted by robertf on Wed, 15 Jan 2020 08:21:15 -0800
Getting Started with the web Front End to Practice: N Scenes and N Ways for css to Center Vertically
Elements of inline or inline-* are vertically centeredThe properties padding, line-height, vertical-align can be used.There are two specific scenarios:
One line vertically centered, such as a single line of text or a link
In this case, vertical centering can be achieved by adding a padding value of the same size above and below the element.
...
Posted by rab on Wed, 01 Jan 2020 08:09:29 -0800
Using ksoap2 to call webservice in Android
In recent demand, Android app calls remote webservice and checks it on the Internet. In general, it uses ksoap2 for a try. At first, it is not successful. Then it uses axis used in web development last year for reference. Finally, it returns to ksoap2. After several attempts, it is finally successful. The share is as follows:
...
Posted by ICEcoffee on Mon, 23 Dec 2019 09:05:28 -0800
From the beginning of web front end to practice: HTML to PDF graphic report practice
Export PDF graphic report practice
Method 1: jsPDF
When using jsPDF, it should be noted that its default unit is mm, and configuration needs to be passed in when new jsPDF()
const doc = new jsPDF({
unit: 'px',
format: 'a4'
})
This method is useless. This ghost has multiple lines of text and multiple pictures. It's killing!
Method 2: w ...
Posted by fireant on Wed, 18 Dec 2019 02:19:20 -0800
Red, green or something is the most interesting
Recently, the stock market of a factory has fallen sharply. It's really green, so there are all kinds of jokes
As expected, what's red and green is the eternal topic. The stock market is as deep as the sea
In the web development related to financial companies, it is a common demand to show the up and d ...
Posted by the_NEWBIE_ON_THE_BLOCK on Sun, 15 Dec 2019 09:46:26 -0800
Node.js automated test (Mocha+Istanbul)
Based on Express, Mocha + Istanbul
1. Unit Test
1.1 Install Mocha
npm i -D mocha
1.2 Create test/test.js
var assert = require('assert');
describe('Array', function() {
describe('#indexOf()', function() {
it('should return -1 when the value is not present', function() {
assert.equal([1,2,3].indexOf(4), -1);
}) ...
Posted by wama_tech on Sun, 15 Dec 2019 08:45:30 -0800
goweb build service
Introduction to web application
Web applications are everywhere in our lives. Take a look at the applications we use every day. They need to
It's either a Web application or a variation of a Web application like a mobile App. No matter which programming language, as long as
It can develop software that interacts with human beings, and it will c ...
Posted by kiju111 on Sun, 15 Dec 2019 06:27:58 -0800
Introduction to web ABCD day09 ABCD jquery
Introduction to jQuery
brief introduction
jQuery is a cross browser, fast and concise JavaScript framework
The purpose of jQuery design is "write Less, Do More", that is, to advocate writing less code and doing more things
jQuery encapsulates common JavaScript function codes, provides a simple JavaScript Design p ...
Posted by Celauran on Sat, 14 Dec 2019 13:19:13 -0800