spring boot project packaging

1, Modify packing form Set < packaging > war < / packaging > in pom.xml 2, Remove the embedded tomcat plug-in Find the spring boot starter web dependency node in pom.xml, and add the following code, <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</ ...

Posted by Flinch on Tue, 31 Mar 2020 16:17:18 +0200

[springboot] render web page

Spring Boot provides the following template engines for default configuration: Thymeleaf FreeMarker Velocity Groovy Mustache Note: avoid using JSP, JSP can't realize many features of Spring Boot; Integrate jsp Tips: 1. Packing method war 2. To import a pom file: <!-- Introduce freeMarker Dependency package. - ...

Posted by sureshp on Mon, 30 Mar 2020 22:53:41 +0200

2020, still need to learn JSP?

Preface 2020, still need to learn JSP? I believe that the students who are still in university will have this question. In fact, when I was 18 years old, I had already seen a similar question: "should JSP still learn?". In the past 18 years, I have published several JSP articles, and many developers have commented on "isn't t ...

Posted by Ricklord on Mon, 23 Mar 2020 07:58:48 +0100

k3s service building

There is a server at home, usually used as its own development environment, running some small programs. It is planned to upgrade the server and use k3s to manage common development tools, which is convenient for your own use. Because I only have one server, there is no cluster in this article. Quick install command ## "-- Docker" use ...

Posted by dymon on Sat, 21 Mar 2020 15:32:51 +0100

Elk -- the simplest installation and configuration of filebeat

I just do a basic configuration here to ensure that the logs to be collected can be collected, and then the same log information can be merged in multiple lines (as mentioned in the introduction of filebeat, the harvester reads the logs one line at a time), and then a name can be marked (this can be used when configuring kibana ...

Posted by mubashir on Wed, 18 Mar 2020 16:10:11 +0100

Basic review of servlet s

Servlet overview A servlet is a small Java program (that is, a server-side applet) running in a Web server. Servlets typically receive and respond to requests from Web clients over HTTP (Hypertext Transfer Protocol). Preparation process: 1. Write a java class to implement the servlet interface 2. Mod ...

Posted by Wykster on Sat, 07 Mar 2020 14:38:16 +0100

In depth understanding of the case and practice of Java virtual machine class loading and execution subsystem

9.1 overview In the part of Class file format and execution engine, there are not too many contents directly affected by the user's program. How to store the Class file, when to load the Class, how to connect it, and how the virtual machine can execute bytecode instructions are all directly controlled by the virtual machine. The main functions ...

Posted by dlgilbert on Sat, 07 Mar 2020 11:08:29 +0100

The end of nginx configuration reverse agent and load balancing

Refer to previous articles for specific installation configuration https://blog.csdn.net/weixin_44001965/article/details/102723855 Article directory 1, Common commands for nginx operations nginx profile 2, nginx configure reverse agent (1) 3, nginx configure reverse agent (2) Find the nginx configura ...

Posted by johnseito on Mon, 02 Mar 2020 09:28:25 +0100

Eclipse deployment spring MVC + Maven project

Recently, I was tutoring in spring MVC foundation. In view of having contacted Maven before, I couldn't leave it. So Maven was chosen to introduce dependency. However, my previous work projects have exposed me to SpringBoot+maven, and spring MVC has no maven, both of which I still remember. However, spring MVC + maven, this combination, really ...

Posted by ph0ngwh0ng on Tue, 25 Feb 2020 16:24:30 +0100

Summary of problems encountered in using external tomcat in SpringBoot

Preface Spring boot uses the embedded Servlet container by default. When we use external Servlet containers, we will encounter various problems. Environment used: IDEA + apache-tomcat-7.0.91 1.springboot starts tomcat and reports error java.lang.NoClassDefFoundError: javax/el/ELManager Caused by: or ...

Posted by KC8Alen on Sat, 22 Feb 2020 04:57:43 +0100