一份基于SSM框架的后台管理系统(旅游信息相关)
其实代码很简单 普普通通SSM增删改 可以用作毕设 没一点问题(本科就不要用这个了 感觉不是很容易通过) 整个项目的技术亮点也就一个部分::就是生成验证码推流进页面内展示;
过程如下:{
@Controllerpublic 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();}}}
}接下来是效果图展示:
登陆页面
注册页面
重置密码页面
登入后界面
用户信息修改展示
用户管理权限修改(点击按钮及时刷新状态信息)
个人信息展示弹窗
新增用户页面
旅游公司信息展示添加以及修改------------------------------------------------------------------------------------
旅游景点信息展示
修改景点信息等
餐饮信息增删改
酒店增删改
出行增删改
=======================================================================>>>>>>