SpringBoot project jar package and war package

Table of contents

1. War package of SpringBoot project

2. SpringBoot project jar package


Background: Using the Idea editor

1. War package of SpringBoot project

step:

  1. In the <build> tag in the pom.xml file, use the <finalName> tag to name the generated war package. If no name is specified, an av.war package will be generated according to the gav coordinates in the current pom file.
  2. Under the gav coordinates in the pom.xml file, use the <packaging> tag to specify the war package. (Because SpringBoot will make the jar package by default, so when you want to make the war package, you must manually write the war package)
  3. Then right-click maven on the far right of the idea editor, select the current project, then select Lifecycle, and then select package to package.

The diagram of step 1 is as follows:

The picture of step 2 is as follows:

 Notice:

If we want the war package to run on other servers, we need to let the startup class inherit the SpringBootServletInitializer class and rewrite the configure() method in the SpringBootServletInitializer class. The specific code is as follows:

2. SpringBoot project jar package



If you don't understand what I wrote, you can contact me directly, and I will definitely reply when I see it.



It is necessary to add a little content, I succumb to this place where I want to evaluate the quality score when I post a blog.

!!!!!!!!!!!

Don't read the text below at all. Fading out is to make up the number of words.

To Wang Lun

        Tang Libai

Li Bai was about to go on a boat, when he suddenly heard the sound of singing on the shore.
The peach blossom pool is thousands of feet deep, not as good as Wang Lun's love for me.



The peacock flies southeast, wandering five miles away.

"Thirteen can weave vegetables, fourteen learn to tailor clothes, fifteen play the harp, and sixteen recite poems and books. Seventeen is a gentleman's wife, and her heart is always bitter and sad. Since the monarch is a government official, he keeps his integrity and love, and the concubine leaves a vacant room. , Seeing each other is rare every day. The cock crows into the weaving machine, and there is no rest at night. Five horses are cut off in three days, and the adults think it is too late. It is not late for weaving, and the wife of the king can't do it! Then grandma Bai will be sent back in time."

The government officials heard about it, and told their grandma in the hall: "My son has become a rich man, and I am lucky to have this woman again. We are friends in Huangquan. We have worked together for two or three years. It has not been a long time, and there is no deviation in women's behavior. , why don't you want to be thick?"

My mother said to the government official: "Why is it too mediocre! This woman has no etiquette, and she acts freely. I have been angry for a long time, how can you be free! There is a virtuous woman in the east. She is named Qin Luofu. She is very poor. My mother is for you. Beg. You can send it quickly, and send it away, be careful not to stay!"

The head of the government knelt down and said, "Fu Weiqi's mother, if you send this woman today, you will never take her again!"

Grandmother heard it, and the hammer bed was furious: "You are fearless, how dare you help your wife! I have lost my kindness, and I will not agree!"

The government official was silent, and then bowed and returned to the house. He said that he was a bride, sobbing and unable to speak: "I will not drive you away, but I will force you to have a mother. But you will return home temporarily, and I will report to the government now. I will return it soon, and I must return it soon." Welcome each other. With this intention, be careful not to disobey my words."

The bride said to the government official: "Don't repeat the confusion. In the past, at the age of Chuyang, Xie's family came to the noble family. Served to follow the father-in-law, dare to be self-sufficient in advance and stop? Work and rest day and night, lingering and hard work. It is said that there is no crime, and it is a great kindness to support the deceased. ; Still being expelled, how can I come back again! The concubine has an embroidered waist jacket, which is luxuriant and self-sufficient; a red cloth tent, with a sachet hanging from the four corners; Among them, people are cheap and things are also contemptible, not enough to welcome future generations, and left as a legacy, there is no reason for it today. It is always a comfort, and it will not be forgotten for a long time!"

The rooster crows and the dawn dawns, and the bride puts on strict makeup. Let me embroider skirts and do everything. Silk shoes on the feet, tortoiseshell light on the head. The waist is like flowing silk, and the ears are listening to the bright moon. The finger is like cutting the root of a green onion, and the mouth is like containing Zhudan. Slender and small steps are unparalleled in the world.

When I went to worship my mother, my mother was furious. "When I was a daughter in the past, I was born in the wild. I didn't have a lesson, and I was ashamed of the noble family. I was driven by my mother's money and silk. Today I go home and miss my mother's work at home." But I said goodbye to my sister-in-law, crying even beads. "When the bride first came, my sister-in-law started to support the bed; today I am sent away, and my sister-in-law is like me. She works hard to support her parents-in-law so that she can help her. From the seventh day to the ninth day, don't forget to play." Go out and board the car, tears Fall more than a hundred lines.

The government officials and horses are in front, and the bride's car is behind. They all meet at the entrance of the avenue. Get off the horse and get into the car, bow your head and whisper together: "I swear not to be separated from you, and I will return home for a while; I will go to the mansion now, and I will return soon. I swear that God will not bear the burden!"

The bride said to the government official: "I am so grateful to you! If you see the record, I will see you soon. You will be treated as a rock, and the concubine will be treated as a pussy. The pussy is like silk, and the rock has no transfer. It's as violent as thunder, I'm afraid I won't do what I want, and it will fry my arms." Raising your hands long and laboring, the two love each other.

Guess you like

Origin blog.csdn.net/weixin_44362089/article/details/127469370