• Springmvc之CRUD和图片上传与下载


    目录

    一、Springmvc之CRUD

     二、图片上传

    三、图片下载 


    一、Springmvc之CRUD

     之前crud:自定义mvc结构 

    1.导入jar包

    2.框架配置文件 mvc.xml

    3.web.xml配置 

                    dispatherServlet

                    encodingFilter

    4.导入工具类:pageBean,tag助手类,tld文件

    5.做开发

    model,dao,service,web,mvc.xml,前端

    现在Springmvc

    1.导入pom包

     pom文件这玩意坑死人~请谨慎编写,共五步

    步骤1:   

    2. 

    3.一步步来,慢慢导入改变

     
                org.springframework
                spring-webmvc
                ${spring.version}
           

           
           
                javax.servlet.jsp
                javax.servlet.jsp-api
                2.3.3
           

           
                jstl
                jstl
                1.2
           

           
                taglibs
                standard
                1.1.2
           

           
                commons-fileupload
                commons-fileupload
                1.3.3
           

     

    4. 
                    org.apache.maven.plugins
                    maven-compiler-plugin
                    ${maven.compiler.plugin.version}
                   
                        ${maven.compiler.source}
                        ${maven.compiler.target}
                        ${project.build.sourceEncoding}
                   

               

               
                    org.mybatis.generator
                    mybatis-generator-maven-plugin
                    1.3.2
                   
                       
                       
                            mysql
                            mysql-connector-java
                            ${mysql.version}
                       

                   

                   
                        true
                   

               

               

    5. 插件2
                    maven-clean-plugin
                    3.1.0
               

               
               
                    maven-resources-plugin
                    3.0.2
               

               
                    maven-compiler-plugin
                    3.8.0
               

               
                    maven-surefire-plugin
                    2.22.1
               

               
                    maven-war-plugin
                    3.2.2
               

               
                    maven-install-plugin
                    2.5.2
               

               
                    maven-deploy-plugin
                    2.8.2
               

    1. "1.0" encoding="UTF-8"?>
    2. "http://maven.apache.org/POM/4.0.0"
    3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    5. 4.0.0
    6. org.example
    7. ssm3
    8. 1.0-SNAPSHOT
    9. UTF-8
    10. 1.8
    11. 1.8
    12. 3.7.0
    13. 5.0.2.RELEASE
    14. 3.4.5
    15. 5.1.44
    16. 5.1.2
    17. 1.3.1
    18. 2.1.1
    19. 2.4.3
    20. 2.9.1
    21. 4.12
    22. 4.0.0
    23. 1.18.2
    24. org.springframework
    25. spring-context
    26. ${spring.version}
    27. org.springframework
    28. spring-orm
    29. ${spring.version}
    30. org.springframework
    31. spring-tx
    32. ${spring.version}
    33. org.springframework
  • 相关阅读:
    ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)
    【Java】逻辑控制
    Armv9读取cache内容:Direct access to internal memory
    Android NDK篇-C++ 自定义命名空间与拷贝构造函数
    机器学习笔记 - 图像搜索的常见网络模型
    【并发】J.U.C线程池
    serverSocket编程DEMO
    软文发布如何选择对应的媒体
    硬实力和软实力,哪个对测试人来说更重要?
    C++项目练习(1)
  • 原文地址:https://blog.csdn.net/qq_66924116/article/details/126391534