Base64Utils is used quickly. Daniel summarizes himself. 500 pages of "Java growth notes"

Posted by dark_destroyer on Wed, 15 Dec 2021 03:04:47 +0100

Test example:

public class Bese64Utils extends Base64Utils {

    public static void main(String[] args) {

        String str = "https://blog.csdn.net/weixin_42798851/article/details/118678116?spm=1001.2014.3001.5501";

        // encode decode

        byte[] encode = encode(str.getBytes(StandardCharsets.UTF_8));

        System.out.println(new String(encode));



        byte[] decode = decode(encode);

        System.out.println(new String(decode));

        //encodeUrlSafe decodeUrlSafe

        byte[] bytes = encodeUrlSafe(str.getBytes(StandardCharsets.UTF_8));

        System.out.println(new String(encode));



        byte[] decodeUrlSafe = decodeUrlSafe(bytes);

        System.out.println(new String(decodeUrlSafe));



        // encodeToString decodeFromString

        String encodeToString = encodeToString(str.getBytes(StandardCharsets.UTF_8));

        System.out.println(encodeToString);

        byte[] decodeFromString = decodeFromString(encodeToString);

        System.out.println(new String(decodeFromString));



        String encodeToUrlSafeString = encodeToUrlSafeString(str.getBytes(StandardCharsets.UTF_8));

        System.out.println(encodeToUrlSafeString);

        byte[] decodeFromUrlSafeString = decodeFromUrlSafeString(encodeToUrlSafeString);

        System.out.println(new String(decodeFromUrlSafeString));

    }

} 

In this way, there is no need to write these pairs of methods. In addition, they can be directly integrated in business code, for example:

public class  XxxServiceImpl extends Base64Utils implements XxxService{

	...

} 

last

Xiaobian shares some of my usual learning materials here. Due to space constraints, the detailed information of pdf documents is too comprehensive, and there are too many details, so I only give a rough introduction to the screenshots of some knowledge points, and there are more detailed contents in each small node!

CodeChina open source project: [analysis of Java interview questions of front-line large manufacturers + core summary learning notes + latest explanation Video]

Programmer code interview guide IT famous enterprise algorithm and data structure problem optimal solution

This is the "programmer interview book! The book summarizes the optimal solutions of various questions in the code interview of IT famous enterprises, and provides the implementation of relevant codes. In view of the lack of authoritative topic summary in the current programmer interview, this book selects nearly 200 classic code interview questions that have actually appeared, so as to help the "big programmers" make sure of their interview preparation. "After brushing this book, you are the" question king "!

TCP-IP protocol group (version 4)

This book is the latest version of the classic book on TCP/IP protocol family. This book has been popular with readers since its first edition was published.

The latest edition of this book "carries out" to protect the elements, taking into account the latest development of computer network technology in the physical environment. The book has seven parts, 30 drafts and seven appendices: the first part introduces some basic concepts and basic underlying technologies; the second part introduces network layer protocols; the third part introduces transport layer protocols; The fourth part introduces the application layer protocol: the fifth part introduces the next generation protocol, namely IPv6 protocol; the sixth part introduces the network security issues; the seventh part gives seven appendices.

Java development manual (Songshan version)

Needless to say, I read Ali's development manual every time it is updated. This is the latest * * (Songshan version) in early August**

MySQL 8 from entry to mastery

The main contents of this book include MySQL installation and configuration, database creation, data table creation, data types and operators, MySQL functions, querying data, data table operations (inserting, updating and deleting data), indexes, stored procedures and functions, views, triggers, user management, data backup and restore, MySQL logs, performance optimization, MySQL repl application MySQL Workbench, MySQL Utilities, MySQL Proxy, PHP operation MySQL database and PDO database abstract class library, etc. Finally, through the database design of three comprehensive cases, this paper describes the application of MySQL in practical work.

Spring 5 Advanced Programming (version 5)

This book covers all the contents of Spring 5. If you want to make full use of the powerful functions of this leading enterprise Java application development framework, this book is the most comprehensive Spring reference and practical guide.

The fifth edition of this book covers the core Spring and its integration with other leading Java technologies such as Hibemate JPA 2.Tls, Thymeleaf and websocket. This book focuses on how to use java to configure classes, lambda expressions, Spring Boot and reactive programming. At the same time, some insights and practical experience will be shared with enterprise application developers, including remoting, transaction, Web and presentation layers, and so on.

Java core knowledge points + 1000 Internet Java Engineer Interview Questions

The way of enterprise IT architecture transformation Alibaba's China Taiwan strategic thought and Architecture Practice

This book describes the technological development history of Alibaba, as well as the practice and development history of the Internet technology architecture.

b1k-1630889637389)]

[external chain picture transferring... (img-mJiLoMNj-1630889637390)]

The way of enterprise IT architecture transformation Alibaba's China Taiwan strategic thought and Architecture Practice

This book describes the technological development history of Alibaba, as well as the practice and development history of the Internet technology architecture.

Topics: Java Back-end Interview Programmer