Tagged

java learning

A collection of 22 posts

java learning

Another fruit stand in the Java project

Article DirectoryPreface1. Screenshots of packages and tablesSecond, the source code1. JDBC connect to Mysql dataAdministrator interface: add, delete, check and modifyUser interface: Find fruitsEstablish disconnection2. GUI window interfaceStart selection interfaceUser purchase fruit interfaceAdministrator login interfaceAdministrator interface3. Fruit attributes4.main methodto sum upRefuse white prostitution, give Sanlian encouragement!PrefaceSome time ago,

java learning

Spring 004: Basic use of jdbcTemplate, Spring physical control

Article DirectoryOne, the basic use of Spring JdbcTemplate:1. Overview of JdbcTemplate:2. JdbcTemplate development steps:3. Spring generates JdbcTemplate object:4. Extract database configuration parameters:5. Common operations of JdbcTemplate:Second, Spring's transaction control:1. Programmatic transaction control related objects:1.1 PlatformTransactionManager: Platform Transaction Manager1.2 TransactionDefinition:1.

java learning

The actual combat of Niuke.com back-end project (36): Develop community search function

Article DirectoryBusiness LayerPresentation layerProducerconsumerPresentation layerfront endSearch serviceSave the post to the Elasticsearch server.Delete the post from the Elasticsearch server.Search for posts from Elasticsearch servers.Post an eventWhen posting a post, submit the post to the Elasticsearch server asynchronously.When adding a comment, submit the post to the Elasticsearch

java learning

[JavaLearn] # Training (4)-Object-Oriented Programming_3

1. Know the Object classThe Object class is the base class of all classes, which means that all classes have the properties and methods of the Object class. 1.1 Common methods of Object classObject obj = new Object; // ===================== public方法 ========================== obj.toString(); // 将一个对象的内容转换为字符串 obj.equals(""); // 判断两个对象的内容是否相同,默认比较两个对象的 hashcode obj.hashCode(); // 底层数据结构是哈希表,

java learning

Niuke.com back-end project combat (35): Spring integrates Elasticsearch

Spring integrates ElasticsearchIntroduce dependenciesspring-boot-starter-data-elasticsearchConfigure Elasticsearchcluster-name、cluster-nodesSpring Data ElasticsearchElasticsearchTemplateElasticsearchRepositoryIntroduce dependencies1 、 pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> </dependency> The version is deleted here. Because the POM file inherits the parent POM, the version in the

java learning

【Learning Java that you can understand at a glance】Functional interface of advanced chapter

Functional interfaceFunctional interface overviewFunctional interface as method parameterFunctional interface as the return value of a methodCommonly used functional interfaceSupplier interfaceConsumer interfacePredicate interfaceFunction interfaceFunctional interface overviewFunctional interface: An interface with one and only one abstract method. Functional programming in Java is embodied in Lambda expressions. Therefore, a functional interface is an