随笔分类 - Spring Framework
摘要:创建web项目 实现servlet接口重写service方法 继承HttpServlet实现类改写doGet方法/doPost方法 遇到的问题: 中文乱码问题(get不会乱码,post会乱码) post设置 request.setCharacterEncoding(“UTF-8”); String
阅读全文
摘要:Idea创建SSM 1.new Project -> maven -> create from archetype -> maven-archetype-webapp 2.配置tomcat -> edit configuration -> tomcat Local -> deploymant选择wa
阅读全文
摘要:使用Mapper组件操作数据库(使用对象接收数据) main -> object-set数据 -> 调用mapper接口 -> 调用mapper.xml的sql ->存储至database 定义UserObject类 mapper.xml <mapper namespace="mybatisClas
阅读全文
摘要:Mybatis官网: https://mybatis.net.cn/configuration.html#typeAliases Mybatis 使用 Class、xml实现操作数据库(基础的javaProject) jar包:mybatis-3.5.2.jar / mysql-connector-
阅读全文
摘要:Spring下载和安装 包下载地址:https://repo.spring.io/ui/native/release/org/springframework/spring 内容: src路径下创建xml文件 spring容器ApplicationContext(预初始化 lazy-init="tru
阅读全文