Library management system Part1 (practice of encapsulation, inheritance, polymorphism and interface)
Library management system is a common small project in learning programming. After learning classes and objects, encapsulation, inheritance, polymorphism and interfaces, we can use these ideas to realize our library management system. Here I will use two blogs to explain the specific implementation methods.
Blog link:
1. Business requirements ...
Posted by Klojum on Mon, 28 Feb 2022 20:52:45 +0100
Java file streaming and I/O
Java file streaming and I/O
file
concept
A file is where data is stored.File stream: files are operated in the form of stream in the program.Stream: the path of data between the data source (file) and the program (memory)Input stream: the path of data from data source (file) to program (memory)Output stream: the path of data from program (me ...
Posted by JamesyBHOY on Sat, 26 Feb 2022 14:10:54 +0100
Java --- object and polymorphism
Three characteristics of object-oriented: encapsulation, inheritance and polymorphism
encapsulation
In order to ensure the security of variables, we use encapsulation, do not care about the specific implementation details, but only access the members of the class through external excuses.
public class Student {
private String name;
p ...
Posted by brain on Thu, 24 Feb 2022 10:47:15 +0100
IDEA to quickly create a SpringBoot project
1 objectives
SpringBoot project can be created quickly (without writing any configuration files)Introduction to the basic principles of SpringBootIntroduction and use of SpringBoot configuration fileSpringBoot integrates Mybatis, Redis and timerSpring boot sends Http requestTesting in SpringBootSpring boot packaged deployment
2 create a Spring ...
Posted by catlover on Tue, 08 Feb 2022 00:16:26 +0100
Data processing and jump of spring MVC learning 04
review
Implementation steps of developing spring MVC with annotations:
Create a new web projectImport related jar packagesWrite web XML, register DispatcherServletWrite spring MVC configuration fileThe next step is to create the corresponding control class, controllerFinally, improve the correspondence between the front-end view and the contr ...
Posted by stolzyboy on Thu, 03 Feb 2022 15:48:02 +0100
Quickly compile Spring source code under Macos to solve the problem of slow compilation
Environmental preparation
OS: MacOSJDK: java version "1.8.0_231"idea: 2019.3.4Gradle: 5.6.4
1. Download Spring source code
1.1 method 1-Github official
https://github.com/spring-projects/spring-framework Recommendations:
Select the release version to downloadThe network speed is too slow. Select mode 2
1.2 mode 2-Gitee
Code cloud acce ...
Posted by Hylian on Mon, 24 Jan 2022 22:51:48 +0100
[note] Vue+Spring Boot front and back end separation development practice project - library management system
1, Effect display
main interface:
Add books:
Modify interface:
2, Front end implementation
1,Vue.cli build project
Enter vue ui on the command line (UI interface with vue version above 3.0)
vue ui
Manually create the project and select the following configuration to use: Wait until the project is created, because the bac ...
Posted by avvishnu on Wed, 19 Jan 2022 17:27:28 +0100
Quickly understand the artifact of development efficiency -- Maven
If you are doing java development, there will be various jar packages in your project, but manual copying is error prone, and the version dependency requires you to find jar packages everywhere to download, so it is necessary for you to learn maven to help you manage jar packages and get twice the result with half the effort~
Now let's ask an ...
Posted by Helaman on Sun, 16 Jan 2022 15:48:04 +0100
Idea operation Maven detailed use
Idea operation Maven detailed usage:Introduction to MavenWhat is MavenMaven's correct pronunciation is[ ˈ mev ə n] "Sell v", not "horse plague" and other plagues.Maven is a project management tool, which contains a project object model (POM), a set of standards.What problems can Maven solveNow we need to use many third-party ...
Posted by dokueki@gmail.com on Fri, 14 Jan 2022 13:30:14 +0100
Simple calculator implemented by Java Swing
Project introduction
MVC model
Project introduction (download at the end of the text):
Calculator window, user interface
Button monitoring and keyboard monitoring are equivalent to controllers
Data processing, equivalent to model
General idea,
When the user clicks the button or presses the keyboard, the ...
Posted by anthonyw17 on Fri, 07 Jan 2022 16:07:25 +0100