Implementation steps of spring MVC project

1. Add maven dependency (pom.xml) <dependencies> <!-- Servlet API rely on --> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <scope>provided</scope> </dependency> <!-- jstl --> <dependency ...

Posted by kee2ka4 on Wed, 27 Nov 2019 08:32:35 -0800

Spring cloud uses feign consumer service and uses hystrix to fuse

Spring cloud uses feign consumer service and uses hystrix to fuse Service consumption (create a feign project and use hystrix) Project screenshots configuration file Code Monitor configuration file Code Operation and verification Startup service Monitoring service Connection address Service consumption (create a fe ...

Posted by Immortal55 on Wed, 27 Nov 2019 08:05:56 -0800

Some explorations to save the game

To make an slg game, because the content of slg game is usually too long, it must be persisted Prior to 1. Set, load and save the custom game map format In java, you can directly use fileoutputstream and dataoutputstream public static void saveMapBin(MapBinDAO binFile, String Path) { try { FileOutputStream fs_out = new Fil ...

Posted by winkhere on Wed, 27 Nov 2019 08:02:45 -0800

Spring-IOC implementation [02-XML configuration file mode]

XML configuration mode Attribute injection Construction injection: create a parametric construction method and a nonparametric construction method Injection in application.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XML ...

Posted by HaXoRL33T on Wed, 27 Nov 2019 07:27:12 -0800

A plug-in for quick generation of Android shape -- NoCodeShape

I. Introduction to NoCodeShape NoCodeShape is an Android Studio plug-in that can generate shape.xml in Android through visual interface operation. The novice can better accept the corresponding attributes in Android, and the senior programmer can simplify the operation and generate shape.xml quickly. II. Usage of NoCodeShape 1. Download and ins ...

Posted by kfir91 on Wed, 27 Nov 2019 01:16:23 -0800

Examples of Android Q dark themes

Learn how dark themes work, first-hand information is Official Documents Corresponding Google Sample Official document: DayNight - Adding a dark theme to your app: https://medium.com/androiddevelopers/appcompat-v23-2-daynight-d10f90c83e94Official document: Dark theme:https://developer.android.com/preview/features/darkthemeOfficial case: andro ...

Posted by bdurham on Tue, 26 Nov 2019 19:07:52 -0800

mybatis Lecture--Tags and TypeHandler Use

[TOC] Quote The first two sections describe the Mybatis environment setup and the lifecycle of its components.These are our essential skills to get started with Mybatis.With the padding from the first two articles, we're going to dig into Mybatis today and fill the hole we buried before. XML Configuration Label overview <?xml version="1.0" ...

Posted by Profector on Mon, 25 Nov 2019 18:26:41 -0800

Eureka service registration and discovery

Eureka can maintain the status of various Spring boot microservices. The microservice end is registered with Eureka service end. Service consumers can obtain various service addresses from Eureka. There are not many specific details. There are already many online addresses. In order to register and discover Eureka's services, ...

Posted by quikone on Mon, 25 Nov 2019 13:30:51 -0800

SSM framework integration environment construction

1. Jar package for spring framework, jar package for mybatis, jar package for spring MVC, integration jar package, database connection pool package 2. The tool I use is IDEA jar package required for integration: Write profile db.properties jdbc.driver=com.mysql.cj.jdbc.Driver //Remember to add cj jdbc.url=jdbc ...

Posted by Steve Mellor on Mon, 25 Nov 2019 13:27:19 -0800

Getting started with python crawler

The basic steps of the crawler: get the url, parse the web page and find the required content; data processing; save. Knowledge points: (1) generally, the url of the same type of web page has certain rules, so you need to pay attention to observation when crawling, such as scenic spots Second pages: https://travel.qunar.com/p-cs ...

Posted by e7gaskell on Mon, 25 Nov 2019 10:59:02 -0800