In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "how to solve the problem of Java development based on Bootstrap". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Menu
It is very easy to build a menu in Bootstrap. Because of the special menu management, it is much easier than the menus that have been made before. Just click on the menu management to add the demand menu. As shown in the following figure:
The menu cannot be displayed after it has been added because no permissions are assigned to the menu. Next, authorize the menu in role rights management. After logging in with an authorized account, you can see the menu you just added.
two。 Upload pictures
It took a long time to upload the picture. At first I thought that the function of uploading pictures had been done successfully. But when I look back, I realize that there is a problem.
Question 1:
Because I have to upload a total of three pictures, the problem is that each upload is successful, but the data in the database is always the last record. Finally, it is found that the parameters of the method are miswritten. The original call is to delete the object entity based on multiple attributes, but it is found that two parameters new String [] {"type", "typeId"} are written in the parameters of the method, and the second parameter, typeId, causes all the records of the user to be deleted each time. Finally, change to new String [] {"type", "imgId"}, and change the second parameter to imgId each time according to the type of image deleted. Each change only changes the corresponding picture, avoiding deleting all the pictures of the same user.
Question 2:
After the upload is successful, the page will not be displayed. The problem is that the previous practice was to upload only one picture, and the image path after each upload was saved to filePath, but now the path of each upload is saved to filePath after uploading three pictures, that is to say, the path of the second upload will cover the path of the previous one, so the display effect of the three pictures on the page will always be the same photo.
Finally, the image uploaded by the user from the attachment table will be displayed on the page in the page to be displayed, thus avoiding the problem that only one path can be saved in filePath!
This is the end of the content of "how to solve the problem of Java Development based on Bootstrap". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.