Dynamic agent, annotation, classloader learning

Record learning content Today's main learning: dynamic agent, annotation, classloader 1, Dynamic agent Role: enhance a method. There are three ways to enhance an object: 1. Inherit, override method after inheriting parent class. Advantages: simple, easy to implement, can inherit the class after rewritin ...

Posted by mizkit73 on Sun, 16 Feb 2020 02:50:18 -0800

java Foundation Start

This exercise contains points of knowledge: Identifier, keyword, comment, variable, data type, constant Basic data types: Integer type (int) Floating Point Type (float) Character type (char) Boolean type java provides a series of access controllers to set different levels of access based on class es, v ...

Posted by activeserver on Sat, 15 Feb 2020 17:23:45 -0800

Spring boot integrates WEB Development -- processing JSON return data

1. Use the default json to convert HttpessageConverter At present, JSON is the mainstream front and back end data transmission mode. In spring MVC, HttpMessageConverter is used to support the conversion of JSON, and the relevant configuration is further simplified in spring boot. pom.xml <dependency> <groupId>org.springframework.b ...

Posted by fazlionline on Sat, 15 Feb 2020 02:14:09 -0800

Getting started with Spring Boot, configuration, and logging

Spring Boot benefits Fast creation of stand-alone Spring projects and integration with mainstream frameworks Using the embedded Servlet container, the application does not need to be a WAR package starters auto dependency and version control A large number of automatic configuration, simplified devel ...

Posted by LeslieHart on Sat, 15 Feb 2020 02:05:02 -0800

Go Language Self-Study 18: Process Control Paper

There are so many process control methods in Go: if - else conditional statement switch - case selection statement for - range loop statement goto unconditional jump statement Defer defer execution if-else conditional statement if condition 1 { Branch 1 } else if conditio ...

Posted by nologin666 on Fri, 14 Feb 2020 23:13:08 -0800

SpringBoot -- Schedule Tasks

Starting with Spring 3.1, the implementation of scheduled tasks in Spring has become unusually simple.First turn on support for scheduled tasks by configuring the class annotation @EnableScheduling, then annotate @Scheduled on the method of executing the collection task to declare that this is a scheduled task. Spring supports a variety of sche ...

Posted by wilzy on Fri, 14 Feb 2020 09:07:13 -0800

Detailed process and implementation of Github third party login

1, Flow chart 2, Specific implementation steps I. create OAuth App First of all, we need to create an OAuth App. Click according to the steps below Fill in the information in turn, and then click Register application Then we can see that an id and password will be generated, which will be used later. Try not to let others see it (I'm he ...

Posted by labmixz on Fri, 14 Feb 2020 07:35:57 -0800

Spring cloud project integration [eureka+ribbon+zuul+hystrix+hystrix dashboard]

This article is not suitable for people who do not have the foundation of spring cloud. This article is a shelf that I sorted out after learning spring cloud. Mainly for self study Students who need source code are concerned about the following official account reply: xdxcloud Service Architecture ...

Posted by wiccan8888 on Fri, 14 Feb 2020 02:47:10 -0800

Spring framework - Part 2

Chapter 1: Spring's IOC implementation of CRUD 1.1 - Requirements and technical requirements Requirement: realize CRUD operation of account Technology: Using spring's IoC to manage objects Using dbutils as a persistence layer solution Using c3p0 data source 1.2 - environment construction 1.2.1-Maven project import dependency <dependen ...

Posted by davinci on Thu, 13 Feb 2020 23:29:13 -0800

Simple application of thmeleaf in springboot

Simple application of thmeleaf in springboot The priority of static directory and the type of storage resources Shortcut key of query class: ctrl+shift+r Search ResourceProperties private static final String[] CLASSPATH_RESOURCE_LOCATIONS = new String[]{ "classpath:/META-INF/resources/", "c ...

Posted by elhelaly1999 on Thu, 13 Feb 2020 22:41:24 -0800