SSM(Spring SpringMVC MyBatis)配置文件信息,完成学生管理页面(前后端全部代码)

news2024/11/15 4:35:28

效果图(elementUI)

项目结构

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
         version="4.0">

    <servlet>
        <servlet-name>DispatcherServlet</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>classpath:springmvc.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>DispatcherServlet</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

    <filter>
        <filter-name>CharacterEncodingFilter</filter-name>
        <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>utf-8</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>CharacterEncodingFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:spring.xml</param-value>
    </context-param>
    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
    <filter>
        <filter-name>httpPutFormContentFilter</filter-name>
        <filter-class>org.springframework.web.filter.HttpPutFormContentFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>httpPutFormContentFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
</web-app>

springMVC

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:mvc="http://www.springframework.org/schema/mvc"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/context
       http://www.springframework.org/schema/context/spring-context.xsd
       http://www.springframework.org/schema/mvc
       http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd">
    <!--扫描包-->
    <context:component-scan base-package="com.etime.controller"></context:component-scan>
    <mvc:annotation-driven></mvc:annotation-driven>
    <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="prefix" value="/"></property>
        <property name="suffix" value=".html"></property>
    </bean>
</beans>

spring

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/context
       http://www.springframework.org/schema/context/spring-context.xsd
       http://www.springframework.org/schema/aop
       http://www.springframework.org/schema/aop/spring-aop.xsd
       http://www.springframework.org/schema/tx
       http://www.springframework.org/schema/tx/spring-tx.xsd">
    <!--扫描包-->
    <context:component-scan base-package="com.etime.service"></context:component-scan>
    <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
        <property name="basePackage" value="com.etime.dao"></property>
    </bean>

    <!--数据源-->
    <context:property-placeholder location="classpath:db.properties"/>
    <bean id="pool" class="com.mchange.v2.c3p0.ComboPooledDataSource">
        <property name="driverClass" value="${jdbc.driver}"/>
        <property name="jdbcUrl" value="${jdbc.url}"/>
        <property name="user" value="${jdbc.username}"/>
        <property name="password" value="${jdbc.password}"/>
    </bean>
    <!--mybatis的核心工厂对象-->
    <bean id="sessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
        <!--注入数据源-->
        <property name="dataSource" ref="pool"/>
        <!--配置别名-->
        <property name="typeAliasesPackage" value="com.etime.pojo"/>
        <!--dao文件配置-->
        <property name="mapperLocations" value="classpath:com/etime/dao/*.xml"/>
        <!--分页插件-->
        <property name="plugins">
            <array>
                <bean class="com.github.pagehelper.PageInterceptor"></bean>
            </array>
        </property>
        <property name="configLocation" value="classpath:mybatis.xml"></property>
    </bean>

    <!--事务-->
    <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
        <property name="dataSource" ref="pool"/>
    </bean>
    <!--开启注解事务-->
    <tx:annotation-driven transaction-manager="transactionManager"/>
</beans>

myBatis

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration
        PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
    <settings>
        <!-- 打印查询语句 -->
        <setting name="logImpl" value="STDOUT_LOGGING" />
    </settings>
</configuration>

studentDao.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.etime.dao.StudentDao">
    <!--分页展示-->
    <select id="getAllStudent" parameterType="Student" resultMap="getAllStudentMap">
        SELECT * FROM student s,class c where s.class_id = c.cid
        <if test="sname != ''">
            and sname like concat('%',#{sname},'%')
        </if>
        <if test="gender != ''">
            and gender = #{gender}
        </if>
        <if test="class_id != 0">
            and class_id = #{class_id}
        </if>
    </select>
    <resultMap id="getAllStudentMap" type="Student">
        <id property="sid" column="sid"></id>
        <result property="gender" column="gender"></result>
        <result property="sname" column="sname"></result>
        <association property="clazz" javaType="Clazz">
            <id property="cid" column="cid"></id>
            <result property="caption" column="caption"></result>
        </association>
    </resultMap>
    <!--查询学生所有课程信息-->
    <select id="getAllCourseBySid" parameterType="int" resultMap="getAllCourseBySidMap">
        select *
        from score s,
             course c,
             teacher t
        where c.cid = s.course_id
          and c.teacher_id = t.tid
          and s.student_id = #{sid}
    </select>
    <resultMap id="getAllCourseBySidMap" type="Score">
        <id property="sid" column="sid"></id>
        <result property="student_id" column="student_id"></result>
        <result property="course_id" column="course_id"></result>
        <result property="num" column="num"></result>
        <collection property="courses" ofType="Course">
            <id property="cid" column="cid"></id>
            <result property="cname" column="cname"></result>
            <result property="teacher_id" column="teacher_id"></result>
            <association property="teacher" javaType="Teacher">
                <id property="tid" column="tid"></id>
                <result property="tname" column="tname"></result>
            </association>
        </collection>
    </resultMap>
    <!--批量删除-->
    <delete id="deleteStudents">
        delete from student where sid in
        <foreach collection="array" item="sid" separator="," open="(" close=")">
            #{sid}
        </foreach>
    </delete>
</mapper>

studentDao

@Repository
public interface StudentDao {
    List<Student> getAllStudent(Student student);

    @Select("select * from class")
    List<Clazz> getAllClass();

    List<Score> getAllCourseBySid(int sid);

    int deleteStudents(int[] sids);

    @Insert("insert into student(gender,class_id,sname) values(#{gender},#{class_id},#{sname})")
    int addStudent(Student student);

    @Update("update student set sname = #{sname},class_id=#{class_id},gender=#{gender} where sid = #{sid}")
    int editStudent(Student student);
}

studentService

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentDao studentDao;

    @Override
    public PageInfo<Student> getAllStudent(int page,int rows,Student student) {
        PageHelper.startPage(page,rows);
        List<Student> list = studentDao.getAllStudent(student);
        PageInfo<Student> info = new PageInfo<>(list);
        System.out.println(info);
        return info;
    }

    @Override
    public List<Score> getAllCourseBySid(int sid) {
        return studentDao.getAllCourseBySid(sid);
    }

    @Override
    public List<Clazz> getAllClass() {
        return studentDao.getAllClass();
    }

    @Override
    public boolean deleteStudents(int[] sids) {
        return studentDao.deleteStudents(sids)==0?false:true;
    }

    @Override
    public boolean addStudent(Student student) {
        return studentDao.addStudent(student) == 0?false:true;
    }

    @Override
    public boolean editStudent(Student student) {
        return studentDao.editStudent(student)==0?false:true;
    }

}

controller


@Controller
@RequestMapping("student")
@ResponseBody
@CrossOrigin
public class StudentController {

    @Autowired
    private StudentService studentService;

    /*分页展示加搜索*/
    @GetMapping("getAllStudent")
    public PageInfo<Student> getAllStudent(int page, int rows, String sname, String gender, String cid) {
        int cids;
        if (cid == null || cid == "") {
            cids = 0;
        } else {
            cids = Integer.parseInt(cid);
        }
        System.out.println(sname + "," + gender);
        return studentService.getAllStudent(page, rows, new Student(gender, cids, sname));
    }

    /*查所有班级*/
    @GetMapping("getAllClass")
    public List<Clazz> getAllClass(){
        return studentService.getAllClass();
    }

    /*查询学生所有课程信息*/
    @GetMapping("getAllCourseBySid/{sid}")
    public List<Score> getAllCourseBySid(@PathVariable("sid")int sid) {
        return studentService.getAllCourseBySid(sid);
    }

    /*删除*/
    @DeleteMapping("deleteStudents")
    public boolean deleteStudents(@RequestBody int[] sids){
        return studentService.deleteStudents(sids);
    }

    /*添加*/
    @PostMapping("addStudent")
    public boolean addStudent(@RequestBody Student student){
        return studentService.addStudent(student);
    }

    /*修改*/
    @PutMapping("editStudent")
    public boolean editStudent(@RequestBody Student student){
        return studentService.editStudent(student);
    }

index.html

<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="element-ui-2.13.0/lib/theme-chalk/index.css" />
    <script type="text/javascript" src="vue/vue-v2.6.10.js"></script>
    <script type="text/javascript" src="element-ui-2.13.0/lib/index.js"></script>
    <script type="text/javascript" src="vue/axios-0.18.0.js"></script>
</head>

<body>
    <div id="app">
        <template>
            <el-table :data="tableData" @selection-change="handleSelectionChange" size="medium"
                highlight-current-row="true" style="width: 100%">
                <el-table-column type="selection" width="55" prop="sid">
                </el-table-column>
                <el-table-column width="100px" label="序号" type="index">
                </el-table-column>
                <el-table-column label="姓名" prop="sname">
                </el-table-column>
                <el-table-column label="性别" prop="gender">
                </el-table-column>
                <el-table-column label="班级" prop="clazz.caption">
                </el-table-column>
                <el-table-column>
                    <template slot="header" slot-scope="scope">
                        <el-input v-model="search" placeholder="请输入姓名" />
                    </template>
                </el-table-column>
                <el-table-column>
                    <template slot="header" slot-scope="scope">
                        <el-select v-model="cid" placeholder="请选择班级">
                            <el-option v-for="item in classes" :key="item.cid" :label="item.caption" :value="item.cid">
                            </el-option>
                        </el-select>
                    </template>
                </el-table-column>
                <el-table-column>
                    <template slot="header" slot-scope="scope">
                        <el-radio v-model="sex" label="男">男</el-radio>
                        <el-radio v-model="sex" label="女">女</el-radio>
                    </template>
                    <template slot-scope="scope">
                        <el-button size="mini" @click="handleLook(scope.$index, scope.row)">查看课程信息</el-button>
                    </template>
                </el-table-column>
                <el-table-column>
                    <template slot="header" slot-scope="scope">
                        <el-button type="success" @click="findAll()">搜索</el-button>
                    </template>
                    <template slot-scope="scope">
                        <el-button size="mini" @click="handleEdit(scope.$index, scope.row)">修改</el-button>
                    </template>
                </el-table-column>
            </el-table>
        </template>
        <br />
        <el-row>
            <el-button type="warning" @click="delAll()">删除选中</el-button>
            <el-button type="primary" @click="add()">添加用户</el-button>
        </el-row>
        <template>
            <div class="block" align="right">
                <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
                    :current-page="currentPage" :page-sizes="[3, 4, 5, 6, 7, 8]" :page-size="pageSize"
                    layout="total, sizes, prev, pager, next, jumper" :total="totalCount">
                </el-pagination>
            </div>
        </template>

        <!-- 查看课程信息 -->
        <el-dialog title="查看课程信息" :visible.sync="dialogFormVisible">
            <el-form ref="ruleForm" :model="ruleForm" label-width="80px">
                <el-form-item label="学生姓名">
                    <el-input v-model="ruleForm.sname" style="width: 210px;" readonly></el-input>
                </el-form-item>
            </el-form>
            <el-table :data="tableCourse" @selection-change="handleSelectionChange" size="medium"
                highlight-current-row="true" style="width: 100%">
                <el-table-column width="100px" label="序号" type="index">
                </el-table-column>
                <el-table-column label="课程" prop="courses[0].cname">
                </el-table-column>
                <el-table-column label="成绩" prop="num">
                </el-table-column>
                <el-table-column label="老师" prop="courses[0].teacher.tname">
                </el-table-column>
            </el-table>
        </el-dialog>
        <!--添加学生-->
        <el-dialog title="添加学生信息" :visible.sync="diaAdd">
            <el-form :model="ruleForm" ref="ruleForm" label-width="100px">
                <el-form-item label="姓名" prop="sname">
                    <el-input v-model="ruleForm.sname" style="width: 210px;"></el-input>
                </el-form-item>
                <el-form-item label="性別" prop="gender">
                    <el-radio-group v-model="ruleForm.gender">
                        <el-radio label="男">男</el-radio>
                        <el-radio label="女">女</el-radio>
                    </el-radio-group>
                </el-form-item>
                <el-form-item label="班级" prop="class_id">
                    <el-select v-model="ruleForm.class_id" placeholder="请选择班级">
                        <el-option v-for="item in classes" :key="item.cid" :label="item.caption" :value="item.cid">
                        </el-option>
                    </el-select>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" @click="submitForm()">立即添加</el-button>
                </el-form-item>
            </el-form>
        </el-dialog>
        <!--修改-->
        <el-dialog title="修改学生信息" :visible.sync="dialogVisible">
            <el-form :model="ruleForm" ref="ruleForm" label-width="100px">
                <el-form-item label="姓名" prop="sname">
                    <el-input v-model="ruleForm.sname" style="width: 210px;"></el-input>
                </el-form-item>
                <el-form-item label="性別" prop="gender">
                    <el-radio-group v-model="ruleForm.gender">
                        <el-radio label="男">男</el-radio>
                        <el-radio label="女">女</el-radio>
                    </el-radio-group>
                </el-form-item>
                <el-form-item label="班级" prop="class_id">
                    <el-select v-model="ruleForm.clazz.cid" placeholder="请选择班级">
                        <el-option v-for="item in classes" :key="item.cid" :label="item.caption" :value="item.cid">
                        </el-option>
                    </el-select>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" @click="submitFormEd()">立即修改</el-button>
                </el-form-item>
            </el-form>
        </el-dialog>
    </div>
</body>
<script>
    axios.defaults.withCredentials = false
    new Vue({
        el: "#app",
        data: {
            /*表格数据*/
            tableData: [],
            tableCourse: [],
            /*条件查询关键字*/
            search: '',
            sex: "",
            //批量删除存放选中的复选框
            multipleSelection: [],
            //存放删除的数据
            delarr: [],
            //当前页
            currentPage: 1,
            //每页显示条数
            pageSize: 5,
            //总条数
            totalCount: '',
            //总页数
            totalPage: '',
            // 是否展示课程信息对话框
            dialogFormVisible: false,
            diaAdd: false,
            dialogVisible: false,
            ruleForm: {
                sid: '',
                sname: '',
                gender: '',
                clazz: '',
                class_id: '',
                cid: '',
            },
            classes: '',
            cid: '',
        },
        methods: {

            findAll() {
                axios({
                    method: "get",
                    url: "http://localhost:8080/day11_war_exploded/student/getAllStudent",
                    params: {
                        page: this.currentPage,
                        rows: this.pageSize,
                        sname: this.search,
                        gender: this.sex,
                        cid: this.cid
                    }
                }).then(obj => {
                    console.log(obj)
                    this.tableData = obj.data.list;
                    this.totalCount = obj.data.total;
                });
            },

            getAllClass() {
                axios({
                    method: "get",
                    url: "http://localhost:8080/day11_war_exploded/student/getAllClass",
                }).then(obj => {
                    this.classes = obj.data
                });
            },

            handleSizeChange: function (size) {
                this.pageSize = size;
                this.findAll();
            },

            handleCurrentChange: function (currentPage) {
                this.currentPage = currentPage;
                this.findAll();
            },

            // 详情
            handleLook(index, row) {
                this.dialogFormVisible = true
                this.ruleForm = row
                axios({
                    method: "get",
                    url: "http://localhost:8080/day11_war_exploded/student/getAllCourseBySid/" + row.sid,
                }).then(obj => {
                    this.tableCourse = obj.data
                });
            },

            delAll() {
                //获取删除的ID
                this.delarr = [];
                for (let i = 0; i < this.multipleSelection.length; i++) {
                    this.delarr.push(this.multipleSelection[i].sid);
                }
                //判断要删除的文件是否为空
                if (this.delarr.length == 0) {
                    this.$message.warning("请选择要删除的数据!")
                } else {
                    this.$confirm("是否确认删除?", "提示", { type: 'warning' }).then(() => {
                        //点击确认删除
                        axios({
                            method: "delete",
                            url: "http://localhost:8080/day11_war_exploded/student/deleteStudents",
                            data: this.delarr
                        }).then(obj => {
                            if (obj.data) {
                                this.$message.success("删除成功");
                            } else {
                                this.$message.console.error("删除失败");
                            }
                            this.findAll();
                        });
                    });
                }
            },

            handleSelectionChange(val) {
                this.multipleSelection = val;
            },
            // 添加
            add() {
                this.diaAdd = true;
            },

            submitForm() {
                axios({
                    method: "post",
                    url: "http://localhost:8080/day11_war_exploded/student/addStudent",
                    data: {
                        sname: this.ruleForm.sname,
                        gender: this.ruleForm.gender,
                        class_id: this.ruleForm.class_id
                    }
                }).then(obj => {
                    if (obj.data) {
                        this.$message.success("添加成功");
                    } else {
                        this.$message.error("添加失败");
                    }
                    this.findAll();
                });
            },
            // 修改
            handleEdit(index, row) {
                this.dialogVisible = true;
                this.ruleForm = row;

            },
            submitFormEd() {
                axios({
                    method: "put",
                    url: "http://localhost:8080/day11_war_exploded/student/editStudent",
                    data: {
                        sname: this.ruleForm.sname,
                        gender: this.ruleForm.gender,
                        class_id: this.ruleForm.clazz.cid,
                        sid:this.ruleForm.sid
                    }
                }).then(obj => {
                    if (obj.data) {
                        this.$message.success("修改成功");
                    } else {
                        this.$message.error("修改失败");
                    }
                    this.findAll();
                });
            },
        },

        created() {
            this.findAll();
            this.getAllClass();
        }

    })
</script>

</html>

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1131597.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

有必要买一台内衣裤专洗机吗?性价比超高内衣洗衣机推荐

如果你经常为洗袜子而烦恼&#xff0c;一台迷你洗衣机正是你的救星&#xff01;这款小巧轻便的小产品&#xff0c;是专门为我们解决洗贴身衣物问题而设计的。无论品牌或款式&#xff0c;我们都为你精心为您推荐了许多品质优良的产品。不管你是一个有宝宝的母亲&#xff0c;还是…

C/C++数据结构——队列

个人主页&#xff1a;仍有未知等待探索_C语言疑难,数据结构,小项目-CSDN博客 专题分栏&#xff1a;数据结构_仍有未知等待探索的博客-CSDN博客 目录 一、前言 二、队列的基本操作&#xff08;循环队&#xff09; 1、循环队的数据类型 2、循环队的名词解释 3、循环队的创建及…

prosemirror 学习记录(三)tooltip

prosemirror Tooltip example 自己写的版本&#xff1a; import { Plugin } from "prosemirror-state";export const MyTooltipPlugin new Plugin({view(view) {const tooltip document.createElement("div");tooltip.classList.add("my-custom-t…

大模型在数据分析场景下的能力评测

“你们能对接国产大模型吗&#xff1f;” “开源的 LLaMA 能用吗&#xff0c;中文支持怎么样&#xff1f;” “私有化部署和在线服务哪个更合适&#xff1f;” 自 7 月 14 日发布 AI 数智助理 Kyligence Copilot 后&#xff0c;我们收到了很多类似上面的咨询&#xff0c;尤其…

Django token 认证原理与实战

概述 cookie、session 与token 的区别 Cookie的作用 cookie的存储量很小&#xff0c;一般不超过4Kcookie并不会保存很多信息&#xff0c;一般用来存储登录状态cookie是以键值对进行表示的(keyvalue),例如nameli,表示cookie的名字是name,cookie携带的值是licookie的存储分为会…

php 使用 python translate 实现离线翻译

下载类库 下载语言模型 使用 脚本 offline_translation.py # 离线翻译服务代码 import warningsfrom flask import Flask, request from gevent import pywsgi from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline, AutoModelWithLMHead from transf…

TCP 协议的可靠传输机制是怎样实现的?

TCP 协议是一种面向连接的、可靠的、基于字节流的传输层协议。 1 它通过以下几种方法来保证数据传输的可靠性&#xff1a; 检验和&#xff1a;TCP 在发送和接收数据时&#xff0c;都会计算一个检验和&#xff0c;用来检测数据是否在传输过程中发生了错误或损坏。如果检验和不匹…

【Docker】Docker Compose的使用

我们知道使用一个Dockerfile模板文件&#xff0c;可以让用户很方便的定义⼀个单独的应用容器。然而&#xff0c;在日常工作中&#xff0c;经常会碰到需要多个容器相互配合来完成某项任务的情况。 例如要实现一个Web项目&#xff0c;除了Web服务容器本身&#xff0c;往往还需要…

python实验16_网络爬虫

实验16&#xff1a;网络爬虫 1.实验目标及要求 &#xff08;1&#xff09;掌握简单爬虫方法。 2. 实验主要内容 爬取中国票房网 ① 爬取中国票房网&#xff08;www.cbooo.cn)2019年票房排行榜前20名的电影相关数据 代码部分: import time from selenium.webdriver impor…

抽丝剥茧,Redis使用事件总线EventBus或AOP优化健康检测

目录 前言 Lettuce 什么是事件总线EventBus&#xff1f; Connected Connection activated Disconnected Connection deactivated Reconnect failed 使用 一种另类方法—AOP 具体实现 前言 在上一篇深入浅出&#xff0c;SpringBoot整合Quartz实现定时任务与Redis健康…

FastAPI 快速学习之 Flask 框架对比

目录 一、前言二、FastAPI 优势三、Hello World四、HTTP 方法五、URL 变量六、查询字符串七、POST 请求八、文件上传九、表单提交十、Cookies十一、模块化视图十二、数据校验十三、自动化文档Swagger 风格ReDoc 风格 十四、CORS跨域 一、前言 本文主要对 FastAPI 与 Flask 框架…

cola架构:有限状态机(FSM)源码浅析及扩展

目录 0. cola状态机简述 1.cola状态机使用实例 2.cola状态机源码解析 2.1 语义模型接口源码 2.1.1 Condition和Action接口 2.1.2 State 2.1.3 Transition接口 2.1.4 StateMachine接口 2.2 Builder模式 2.2.1 StateMachine Builder模式 2.2.2 ExternalTransitionBuil…

Vue3-使用create-vue创建项目

认识create-vue create-vue是Vue官方新的脚手架工具&#xff0c;底层切换到了vite&#xff08;下一代构建工具&#xff09;&#xff0c;为开发提供极速响应。 使用create-vue创建项目 1.前提环境条件 已安装16.0或更高版本的Node.js node -v 2.创建一个Vue应用 npm init…

经典卷积神经网络 - GoogLeNet

GoogLeNet是google推出的基于Inception模块的深度神经网络模型&#xff0c;在2014年的ImageNet竞赛中夺得了冠军&#xff0c;在随后的两年中一直在改进&#xff0c;形成了Inception V2、Inception V3、Inception V4等版本。 Inception块 4个路径从不同层面抽取信息&#xff0…

轻松掌握这几种文件批量重命名方法

文件批量重命名一直是许多人在日常工作中经常遇到的问题。如何快速、准确地重命名文件&#xff0c;同时保证文件名的有序性和可读性&#xff0c;是一个值得探讨的问题。本文将介绍一种利用固乔文件管家软件批量重命名文件的方法&#xff0c;帮助您轻松解决这一难题。 固乔文件管…

解析外贸开发信的结构?营销邮件书写技巧?

做外贸的开发信结构是怎样的&#xff1f;写外贸邮件的注意事项&#xff1f; 外贸开发信是国际贸易中至关重要的一环&#xff0c;它不仅是与潜在客户建立联系的第一步&#xff0c;也是一种有效的市场推广工具。蜂邮EDM将深入解析外贸开发信的结构&#xff0c;帮助您更好地理解如…

基于springboot+vue实现地方美食分享网站项目【项目源码+论文说明】

基于springbootvue实现地方美食分享网站演示 摘要 首先&#xff0c;论文一开始便是清楚的论述了系统的研究内容。其次&#xff0c;剖析系统需求分析&#xff0c;弄明白“做什么”&#xff0c;分析包括业务分析和业务流程的分析以及用例分析&#xff0c;更进一步明确系统的需求…

VulnHub SICKOS: 1.1

一、信息收集 1.nmap扫描 IP&#xff1a;192.168.103.177 开放端口&#xff1a;22、3128、8080 这里可以看到3128端口是作为代理使用的&#xff0c;所以想访问80端口必须走3128端口代理 2.利用burp挂上游代理 然后直接开代理&#xff0c;访问80端口 3.扫描目录 因为3128端…

使用adobe font style 工具绘制的艺术字,请鉴赏。

Adobe Fireflyhttps://firefly.adobe.com/generate/font-styles

简化通知基础设施:开源的消息通知服务 | 开源专题 No.41

novuhq/novu Stars: 22.9k License: MIT Novu 是一个开源的通知基础设施项目&#xff0c;它提供了统一的 API 来通过多个渠道发送通知&#xff0c;包括应用内、推送、电子邮件、短信和聊天。主要功能有&#xff1a; 为所有消息提供商 (应用内、电子邮件、短信、推送和聊天) 提…