Build a simple SMM framework

SSM Framework Integration Spring + Spring MVC + MyBatis Spring MVC implements the MVC design pattern, MyBatis implements the data persistence layer, and Spring manages the creation and dependency injection of Spring MVC and MyBatis-related objects. Create a Maven project, pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns ...

Posted on Fri, 27 Mar 2020 09:13:42 -0700 by NME

Spring handles request and response related annotations

@Controller By default, the content of the string.html page in the templates directory is returned. Add @ ResponseBody annotation to the method to return the content of JSON, XML or custom mediaType @RestController Returning the content directly will automatically convert the object entity to JSON format, and the view parser, InternalResourceVi ...

Posted on Fri, 27 Mar 2020 07:26:11 -0700 by hoodlumpr

How to use the ystrix component of SpringCloud

Circuit Breaker Solution Spring Cloud Hystrix Component. Take 2.2.0.release as an example to show you how to get started with this component. Core concepts hystrix: is commonly referred to as a circuit breaker component hystrix-dashboard: breaker monitoring statistics display panel component Turbo: Multi-node breaker statistics consolidation d ...

Posted on Thu, 26 Mar 2020 21:28:31 -0700 by ronverdonk

Page frame 1: Fragment + RadioGroup

With the increase of contact projects, start to summarize some knowledge points, so as to use and find more convenient in the future. Every project needs to build a page framework. So far, I have contacted three main categories:Fragment+RadioGroup , Fragment+LinearLayout, Fragment + ViewPager. Let's talk about the first on ...

Posted on Thu, 26 Mar 2020 09:10:49 -0700 by cyberRobot

android -------- custom control (4)

The first part introduces a simple case of custom control. This article mainly introduces how to customize some properties of custom control.   General steps for using custom attributes in Android: Define declare styleable, add attr Get custom properties using TypedArray Set to View   Custom attributes exist in the / value/attr.xml f ...

Posted on Wed, 25 Mar 2020 08:00:01 -0700 by aneesme

Android Official Demo ActionBarCompat-Styled

ActionBarCompat-Styled Demo download address: https://github.com/googlesamples/android-ActionBarCompat-Styled/#readme This example demonstrates how to use the custom ActionBarCompat, which contains three paging tags.It is important to note that the paging mode of ActionBar has been abandoned since API 21. The interface may vary from device to d ...

Posted on Tue, 24 Mar 2020 09:25:01 -0700 by mband2000

Two detailed methods of integrating Shiro with Spring Boot

In general, the mainstream solution for permission management in Spring Boot is Spring Security. However, Shiro can also be used only from a technical point of view. Comparison between Spring Security and Shiro: Spring Security is a heavyweight security management framework; Shiro is a lightweight security management framework The concept of S ...

Posted on Mon, 23 Mar 2020 00:53:31 -0700 by djremiasz

android----------------------- Composite Control Page for Custom Controls

The previous section describes the custom properties of custom controls, addresses: https://my.oschina.net/zhangqie/blog/1805970 This post is mainly about custom control combinations to improve layout reuse   Benefits of using custom composite controls? In project development, we often encounter many similar or identical layouts, such as t ...

Posted on Sun, 22 Mar 2020 09:58:06 -0700 by Foser

A brief introduction to the separator of custom TabLayout

You must be familiar with using custom TabLayout as the indicator of ViewPager. If you don't know about custom TabLayout, you can have a look at it Showdy Written Custom style of TabLayout . In this article, I will not repeat too much about how to customize the style of TabLayout, but simply talk about how to customize the se ...

Posted on Fri, 20 Mar 2020 13:13:28 -0700 by Moocat

ali druid filters log4j is not configured properly, which leads to disorderly printing of bugs executing SQL logs

Druid version: <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.1.6</version> </dependency> The project uses spring boot + jpa + druid, and LOG is logback. druid does not print SQL content befor ...

Posted on Fri, 20 Mar 2020 07:54:14 -0700 by linuxdoniv