Tag:method

  • Introduction to Java and features of different versions

    Time:2021-3-4

    Java is the general name of java object-oriented programming language and Java platform, which was launched by Sun Microsystems in May 1995. It was jointly developed by James Gosling and his colleagues and officially launched in 1995. Java is divided into three systems Javase (J2SE) (Java2 Platform Standard Edition) Java EE (J2EE) (Java 2 platform, […]

  • Factories in design patterns

    Time:2021-3-4

    Factories in design patterns Intro There are several factory patterns in design patterns. Let’s talk about the usage and examples of these factory patterns. Factory patterns include simple factory, abstract factory and factory method, which are all creative patterns,The so-called creation pattern means that these design patterns are used to create objects. Simple factory First […]

  • Knowledge sharing: how to control JDBC transactions through spring framework?

    Time:2021-3-4

    How spring controls JDBC transactions Through XML configuration Implemented by annotation Case practice XML object configuration declaration 1) . modify XML namespace xmlns:tx=”http://www.springframework.org/schema/tx”http://www.springframework.or… http://www.springframework.or… 2) . AOP agent <aop:aspectj-autoproxy /><!– aop –> 3) . configure transaction manager <! — transaction manager definition — ><bean id=”txManager” class=”org.springframework.jdbc.datasource.DataSourceTransactionManager”> <property name=”dataSource” ref=”dataSource”></property></bean> 4) . configure transaction related notifications […]

  • Java common class: scanner class

    Time:2021-3-4

    1、 Introduction java.util.Scanner It’s a new feature of Java 5. We can use the scanner class toGet user input。 2、 Creating objects Example: Scanner scanner = new Scanner(System.in); 3、 Common methods I. getting input method: next(): get the next input string. nextLine(): gets the string entered by the user on the next line. The difference […]

  • Setting the heap size of IntelliJ idea

    Time:2021-3-4

    error: Exception in thread “Animation Thread” java.lang.OutOfMemoryError: Java heap space resolvent:Run — > Edit configurations — > VIM options – xmx1024m (or larger) remarks: -Xms<size> – Set initial Java heap size -Xmx<size> – Set maximum Java heap size

  • Django 1.8 official document translation: 14-6 system checking framework

    Time:2021-3-4

    System inspection framework New in Django 1.7\. The system inspection framework is designed to verify a series of static inspections of the Django project. It can detect common problems and provide tips on how to fix them. The framework can be extended so you can easily add your own checks. The inspection can be carried […]

  • Technical summary: experience and lessons of C # client construction

    Time:2021-3-4

    The C # client is right. Of course, there is no WPF framework, because you have never learned and used C # before. Some people may say that the language is interoperable. I don’t refute this point, but learning also takes time. Just like I learned Java for 5-6 months, now it takes less than […]

  • Yaml’s k8s Tour – Part one

    Time:2021-3-4

    preface It is often asked: “what happened after the browser entered the URL”. This question seems simple, but it can comprehensively investigate a person’s understanding of the system. If we extend this question to k8s, we can ask similar questions like “what happened after k8s client submitted yaml”. Similarly, to answer this question, we need […]

  • The difference between dynamic method and static method

    Time:2021-3-4

    Dynamic methods are called by objectsStatic methods are called by classes,Because the method is called through ISA and super pointer. Therefore, objects can only call methods of class objects, while class objects can call methods of metaclasses.

  • org.apache.ibatis.binding.BindingException

    Time:2021-3-3

    org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) In mybatis, there is a problem when the Dao interface and mapper configuration file are mapped and bound. To put it simply, the interface and XML are either not found, or they are found but not matched. Mapper interface development needs to follow the following specifications: Mapper.xml The namespace […]

  • Encapsulating unified request function in uni app (Reprint)

    Time:2021-3-3

    Encapsulating the unified request function is beneficial to project maintenance The overall function is simple and practical, but Xiaobian encountered a huge pit. In the project, the jump method is used in the Vue file. After entering the URL parameter ‘/’, the path of the tool prompt is’ / pages / login / Login ‘, […]

  • Speed up the startup and shutdown of the computer

    Time:2021-3-3

      Speed up the startup and shutdown of the computer First of all, I want to thank Kwai Tai platform, so that I can get more useful knowledge ^v^ Now, let’s start Method 1 1. Press Win + R to open the running window, input msconfig and click OK.     2. Select > > […]