spring+mybatis+springmvc integration

dao layer integration of spring and mybatis Required jar package db.properties jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/mybatis?characterEncoding=utf-8 jdbc.username=root jdbc.password=123456 log4j.properties # Global logging configuration, DEBUG is recommended for development environment log4j.r ...

Posted by seidel on Tue, 19 Nov 2019 11:50:43 -0800

shiro learning (IV. shiro integrates spring+springmvc)

  Dependency: Spring context, spring MVC, Shiro core, Shiro spring, Shiro Web To be honest: web.xml,spring,springmvc configuration files are very difficult General effect     Code structure (built with web skeleton)    pom.xml <dependencies> <dependency> <groupId>junit</groupId> <a ...

Posted by php1999 on Tue, 19 Nov 2019 10:12:33 -0800

Android copy of QQ nickname Effect 2

This paper is synchronized from http://javaexception.com/archives/77 Background: stay Last article In, we give a scheme to copy QQ effect. Today we will talk about another way to realize it. Mainly relying on an open source project https://github.com/shangmingchao/PopupList. terms of settlement: PopupList.java code encapsulation is relativ ...

Posted by yogibear333 on Tue, 19 Nov 2019 07:42:49 -0800

Upgrade fastjson version once through jgit

Background: the company where I work has experienced three fastjson upgrades. Due to the large number of clusters and projects, each upgrade is very troublesome. So we developed a java upgrade tool. Function introduction: Function introduction: a jar file, through the Java jar command, enter the user name, password, and the main directory of ...

Posted by bhola on Tue, 19 Nov 2019 06:29:26 -0800

Spring boot learning: spring boot quickly integrates spring security groups

Spring Security brief introduction The core functions of spring security are Authentication and Authorization, that is, whether the authenticated user can access the system and what operations the authorized user can perform in the system. Introducing spring security component Add in pom.xml <dependency> <groupId>org.springfram ...

Posted by cretam on Tue, 19 Nov 2019 03:14:31 -0800

Kafka integrates Spring -- consumer end

Kafka consumer Reliability assurance As a consumer, consumption data needs to consider: 1. No repeated consumption 2. No lack of consumption information Partition allocation policy There are multiple consumers in a consumer group and multiple partitions in a topic, so it is inevitable to involve the allocation of partitions, that is, to determi ...

Posted by mhenke on Tue, 19 Nov 2019 01:05:44 -0800

Android learning notes

The button changes the background as you press: First write a selector.xml: <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <!-- Specify picture when pressed--> ...

Posted by 22Pixels on Mon, 18 Nov 2019 11:22:49 -0800

System UI native tower replaced by five grid tower

As shown in the figure below: to customize Google's native integrated tower icon into a grid icon, the relevant code flow: The native signal tower is shown in the figure below: Schematic diagram of customized five grid signal tower:     The original scheme is drawn by SignalDrawable according to the current signal ...

Posted by ShaolinF on Mon, 18 Nov 2019 09:46:44 -0800

03 mybatis interceptor mechanism

Catalog Introduction to MyBatis interceptor Use of interceptors Introduction and configuration of interceptor Source code analysis summary Reprinted from Research on the principle of MyBatis interceptor Introduction to MyBatis interceptor MyBatis provides a plug-in function. Alt ...

Posted by phpnoobguy on Mon, 18 Nov 2019 01:05:42 -0800

Spring Boot source code analysis -- essence of Spring Boot: initialization data at startup

When we use spring boot to build a project, we sometimes encounter the need to initialize some operations when the project starts. For this demand, spring boot provides us with the following solutions for us to choose: ApplicationRunner and CommandLineRunner interfaces InitializingBean interface and @ PostConstruct during Spring container i ...

Posted by serg91 on Sun, 17 Nov 2019 19:44:30 -0800