旅游信息管理后台(SSM后台管理系统)
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                旅游信息管理后台(SSM后台管理系统)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                一份基于SSM框架的后臺管理系統(旅游信息相關)
其實代碼很簡單 普普通通SSM增刪改 可以用作畢設 沒一點問題(本科就不要用這個了 感覺不是很容易通過) 整個項目的技術亮點也就一個部分::就是生成驗證碼推流進頁面內展示;
過程如下:{
@Controller public class CaptcherController {@RequestMapping(path = "/captcher")public void captcher(HttpServletResponse response,HttpServletRequest request) {int width = 80;int height = 40;//1.創建一個對象,在內存中存圖片(驗證碼圖片對象)BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);//2.美化圖片//2.1 填充背景色Graphics graphics = image.getGraphics();//畫筆對象//graphics.fill//填充//graphics.draw//畫graphics.setColor(Color.white);//畫筆的顏色graphics.fillRect(0,0,width,height);//填充 rect 矩形//2.2 畫邊框String str="QWERTYPADFGHLBNM123456789qwertypadfghjkbnm";//生成隨機角標Random random = new Random();String randomnumber="";graphics.setColor(Color.black);//畫筆的顏色//2.3 寫驗證碼for (int i = 1; i <= 4; i++) {int nextInt = random.nextInt(str.length());//獲取字符char charAt = str.charAt(nextInt);//隨機字符randomnumber+=charAt;graphics.drawString(charAt+"",width/5*i,20);//位置隨機展示通過公式除5再乘以i的數值}System.out.println("當前的驗證碼是:"+randomnumber);request.getSession().setAttribute("captche", randomnumber);//2.4干擾線graphics.setColor(Color.green);//隨機生成坐標點//i<3中的3就是干擾線的個數for (int i = 0; i < 3; i++) {int nextWidth = random.nextInt(width);int nextHeight = random.nextInt(height);int nextWidth2 = random.nextInt(width);int nextHeight2 = random.nextInt(height);graphics.drawLine(nextWidth,nextHeight,nextWidth2,nextHeight2);//例:drawLine(3,3,50,50);//在(3,3)與(50,50)之間畫一條線段,以坐標軸的形式畫線,所以使用random隨機數把這個線的坐標點都給隨機出來}//3.將圖片輸出到頁面展示try {ImageIO.write(image,"jpg",response.getOutputStream());} catch (IOException e) {// TODO Auto-generated catch blocke.printStackTrace();}} }}接下來是效果圖展示:
登陸頁面
注冊頁面
重置密碼頁面
登入后界面
用戶信息修改展示
用戶管理權限修改(點擊按鈕及時刷新狀態信息)
個人信息展示彈窗
新增用戶頁面
旅游公司信息展示添加以及修改------------------------------------------------------------------------------------
旅游景點信息展示
修改景點信息等
餐飲信息增刪改
酒店增刪改
出行增刪改
=======================================================================>>>>>>
GitHub以及Gitee都以上傳源碼以及數據庫,數據庫賬號信息中的密碼是做了加密的,不然就是用base64+md5反向解密出,提供一個超級管理賬號(賬號:ogtwelve;密碼:19630303),注冊的賬號不帶有管理員權限.
GitHub:(國外站點) https://github.com/OGtwelve/TourismInformationBackgroundManagement
Gitee:(國內站點) https://gitee.com/ogtwelve/TourismInformationBackgroundManagement
沒區別 , 訪問速度不同.
內容出自OGtwelve,如有引用文章記得標記出處;
總結
以上是生活随笔為你收集整理的旅游信息管理后台(SSM后台管理系统)的全部內容,希望文章能夠幫你解決所遇到的問題。
                            
                        - 上一篇: Scrapy+ Selenium处理广告
 - 下一篇: MySQL数据库select语句的使用方