iis服务器助手广告广告
返回顶部
首页 > 资讯 > 后端开发 > Python >从零开始SSM搭建步骤(图文)
  • 353
分享到

从零开始SSM搭建步骤(图文)

2024-04-02 19:04:59 353人浏览 独家记忆

Python 官方文档:入门教程 => 点击学习

摘要

目录第一章:搭建整合环境1. 搭建整合环境第二章:spring框架代码的编写第三章:Spring整合springMVC框架1. 搭建和测试Springmvc的开发环境2. Sprin

本文介绍了从零开始SSM搭建步骤,分享给大家,有助于更好的搭建ssm,具体如下:

第一章:搭建整合环境

1. 搭建整合环境

整合说明:SSM整合可以使用多种方式,咱们会选择XML + 注解的方式
整合的思路
2.1. 先搭建整合的环境
2.2. 先把Spring的配置搭建完成
2.3. 再使用Spring整合SpringMVC框架
2.4. 最后使用Spring整合MyBatis框架
创建数据库和表结构
3.1创建数据库


create database ssm;
create table account(
id int primary key auto_increment,
name varchar(20),
money double
);

4.创建Maven工程


<properties>
  <spring.version>5.0.2.RELEASE</spring.version>
  <slf4j.version>1.6.6</slf4j.version>
  <log4j.version>1.2.12</log4j.version>
  <Mysql.version>5.1.6</mysql.version>
  <mybatis.version>3.4.5</mybatis.version>
</properties>
<dependencies>
  <!--spring-->
  <dependency>
    <groupId>org.aspectj</groupId>
    <artifactId>aspectjweaver</artifactId>
    <version>1.6.8</version>
  </dependency>
  <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-aop</artifactId>
    <version>${spring.version}</version>
  </dependency><dependency>
  <groupId>org.springframework</groupId>
  <artifactId>spring-context</artifactId>
  <version>${spring.version}</version>
</dependency>
  <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-WEB</artifactId>
    <version>${spring.version}</version>
  </dependency>
  <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-webmvc</artifactId>
    <version>${spring.version}</version>
  </dependency>
  <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-test</artifactId>
    <version>${spring.version}</version>
  </dependency>
  <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-tx</artifactId>
    <version>${spring.version}</version>
  </dependency>
  <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-jdbc</artifactId>
    <version>${spring.version}</version>
  </dependency>
  <dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.12</version>
    <scope>test</scope>
  </dependency>
  <dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>${mysql.version}</version>
  </dependency>
  <dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>servlet-api</artifactId>
    <version>2.5</version>
    <scope>provided</scope>
  </dependency>
  <dependency>
    <groupId>javax.servlet.jsp</groupId>
    <artifactId>jsp-api</artifactId>
    <version>2.0</version>
    <scope>provided</scope>
  </dependency>
  <dependency>
    <groupId>jstl</groupId>
    <artifactId>jstl</artifactId>
    <version>1.2</version>
  </dependency>
  <!--log start-->
  <dependency>
    <groupId>log4j</groupId>
    <artifactId>log4j</artifactId>
    <version>${log4j.version}</version>
  </dependency>
  <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-api</artifactId>
    <version>${slf4j.version}</version>
  </dependency>
  <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-log4j12</artifactId>
    <version>${slf4j.version}</version>
  </dependency>
 <!-- log end-->
  <dependency>
    <groupId>org.mybatis</groupId>
    <artifactId>mybatis</artifactId>
    <version>${mybatis.version}</version>
  </dependency>
  <dependency>
    <groupId>org.mybatis</groupId>
    <artifactId>mybatis-spring</artifactId>
    <version>1.3.0</version>
  </dependency>
  <!--连接池-->
  <dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>druid</artifactId>
    <version>1.1.10</version></dependency>
</dependencies>
<build>
  <finalName>ssm</finalName>
  <pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.2</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
          <encoding>UTF-8</encoding>
          <showWarnings>true</showWarnings>
        </configuration>
      </plugin>
    </plugins>
  </pluginManagement>
</build>

编写实体类,在ssm_domain项目中编写


package com.qcby.entity;

import java.io.Serializable;

public class Account implements Serializable {
    // 主键
    private int id;
    // 账户名称
    private String name;
    // 账号的金额
    private Double money;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", money=" + money +
                '}';
    }
}

编写service接口和实现类


package com.qcby.service;

import com.qcby.entity.Account;
import java.util.List;

public interface AccountService {

    //查询所有
    public List<Account> findAll();
}



package com.qcby.service;

import com.qcby.entity.Account;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class AccountServiceImpl implements AccountService {
    //查询所有
    @Override
    public List<Account> findAll() {
        System.out.println("业务层:查询所有");
        return null;
    }
}

第二章:Spring框架代码的编写

1. 搭建和测试Spring的开发环境

在ssm_web项目中创建spring.xml的配置文件,编写具体的配置信息。


<?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">
    <!--开启注解扫描,要扫描的是service-->
    <context:component-scan base-package="com.qcby.service"/>
</beans>

在ssm_web项目中编写测试方法,进行测试


package com.qcby.demo;

import com.qcby.service.AccountService;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSpring {
    @Test
    public void run(){
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("classpath:spring.xml");
        AccountService service = ac.getBean(AccountService.class);
        service.findAll();
    }
}

第三章:Spring整合SpringMVC框架

1. 搭建和测试SpringMVC的开发环境

在web.xml中配置DispatcherServlet前端控制器


<!--配置前端控制器-->
<servlet>
  <servlet-name>DispatcherServlet</servlet-name>
  <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  <!--加载springmvc.xml配置文件-->
  <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>

在web.xml中配置DispatcherServlet过滤器解决中文乱码


<!--解决post请求中文乱码的过滤器-->
<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>
    @RequestMapping("/findAll")
    public ModelAndView findAll(){
        System.out.println("表现层:查询所有");
        ModelAndView mv = new ModelAndView();
        mv.setViewName("suc");
        return mv;
    }
}

2. Spring整合SpringMVC的框架

目的:在controller中能成功的调用service对象中的方法。

在项目启动的时候,就去加载spring.xml的配置文件,在web.xml中配置
ContextLoaderListener监听器(该监听器只能加载WEB-INF目录下的applicationContext.xml的配置文
件,所以要配置全局的变量加载类路径下的配置文件)。


<!--配置Spring的监听器-->
<display-name>Archetype Created Web Application</display-name>
<listener>
  <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!--配置加载类路径的配置文件-->
<context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>classpath:spring.xml</param-value>
</context-param>

在controller中注入service对象,调用service对象的方法进行测试


package com.qcby.controller;

import com.qcby.entity.Account;
import com.qcby.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;

@Controller
@RequestMapping("/account")
public class AccountController {
    //依赖注入
    @Autowired
    private AccountService accountService;
    
    @RequestMapping("/findAll")
    public ModelAndView findAll(){
        System.out.println("表现层:查询所有");
        //调用service的方法
        List<Account> list = accountService.findAll();
        ModelAndView mv = new ModelAndView();
        mv.setViewName("suc");
        return mv;
    }
}

第四章:Spring整合MyBatis框架

1. 搭建和测试MyBatis的环境

在web项目中编写SqlMapConfig.xml的配置文件,编写核心配置文件


<?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>

    <properties resource="jdbc.properties"></properties>
    <!--定义别名-->
    <typeAliases>
        <!--把com.qcby.entity.User使用user别名来显示,别名user User USER都可以,默认是忽略大写的-->
        <!--<typeAlias type="com.qcby.entity.User" alias="user"/>-->

        <!--针对com.qcby.entity包下的所有的类,都可以使用当前的类名做为别名-->
        <package name="com.qcby.entity"/>
    </typeAliases>

    <environments default="mysql">
        <environment id="mysql">
            <!--配置事务的类型,使用本地事务策略-->
            <transactionManager type="JDBC"></transactionManager>
            <!--是否使用连接池 POOLED表示使用链接池,UNPOOLED表示不使用连接池-->
            <dataSource type="POOLED">
                <property name="driver" value="${jdbc.driver}"/>
                <property name="url" value="${jdbc.url}"/>
                <property name="username" value="${jdbc.username}"/>
                <property name="passWord" value="${jdbc.password}"/>
            </dataSource>
        </environment>
    </environments>
    <mappers>
        <mapper resource="mapper/AccountDao.xml"></mapper>
    </mappers>
</configuration>

AccountDao接口


package com.qcby.dao;

import com.qcby.entity.Account;

import java.util.List;

public interface AccountDao {
    //查询所有
    public List<Account> findAll();
}

编写AccountDao.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.qcby.dao.AccountDao">
    <select id="findAll" resultType="account">
        select * from account
    </select>
</mapper>

编写测试的方法


package com.qcby.demo;

import com.qcby.dao.AccountDao;
import com.qcby.entity.Account;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.junit.Test;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

public class TestMybatis {
    @Test
    public void run() throws IOException {
        InputStream in = Resources.getResourceAsStream("mybatis.xml");
        SqlSessionFactory factory = new SqlSessionFactoryBuilder().build(in);
        SqlSession session = factory.openSession();
        AccountDao mapper = session.getMapper(AccountDao.class);
        List<Account> list = mapper.findAll();
        for (Account account : list) {
            System.out.println(account);
        }
        //关闭资源
        session.close();
        in.close();
    }
}

2. Spring整合MyBatis框架

目的:把SqlMapConfig.xml配置文件中的内容配置到applicationContext.xml配置文件中
在service中注入dao对象,进行测试


<?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:property-placeholder location="classpath:jdbc.properties"/>
    <!--开启注解扫描,要扫描的是service-->
    <context:component-scan base-package="com.qcby.service"/>
    <!--配置数据库连接池-->
    <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource">
        <property name="driverClassName" value="${jdbc.driver}"/>
        <property name="url" value="${jdbc.url}"/>
        <property name="username" value="${jdbc.username}"/>
        <property name="password" value="${jdbc.password}"/>
    </bean>
    <!--Spring整合MyBatis框架,SqlSessionFactoryBean创建工厂对象-->
    <bean id="sessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
        <!-- 注入数据库连接池 -->
        <property name="dataSource" ref="dataSource"/>
        <!-- 扫描entity包 使用别名 -->
        <property name="typeAliasesPackage" value="com.qcby.entity" />
        <!-- 扫描sql配置文件:mapper需要的xml文件 -->
        <property name="mapperLocations" value="classpath:mapper
    @RequestMapping("/findAll")
    public ModelAndView findAll(){
        System.out.println("表现层:查询所有");
        //调用service的方法
        List<Account> list = accountService.findAll();
        for (Account account : list) {
            System.out.println(account);
        }
        ModelAndView mv = new ModelAndView();
        mv.setViewName("suc");
        return mv;
    }
}

spring.xml配置声明式事务管理


<!-- 配置声明式事务管理-->
 <!--平台事务管理器-->
 <bean id="dataSourceTransactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
     <property name="dataSource" ref="dataSource"/>
 </bean>
 <!--配置事务的通知-->
 <tx:advice id="txAdvice" transaction-manager="dataSourceTransactionManager">
     <tx:attributes>
         <tx:method name="find*" read-only="true"/>
         <tx:method name="*" />
     </tx:attributes>
 </tx:advice>
 <!--配置事务的增强-->
 <aop:config>
     <aop:advisor advice-ref="txAdvice" pointcut="execution(public * com.qcby.service.*ServiceImpl.*(..))"/>
 </aop:config>

表单代码


<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <a href="/account/findAll" rel="external nofollow" rel="external nofollow" >查询所有</a>
    <fORM action="/account/save" method="post">
        姓名:<input type="text" name="name" /><br/>
        金额:<input type="text" name="money" /><br/>
        <input type="submit" value="保存" />
    </form>
</body>
</html>

controller代码


package com.qcby.controller;

import com.qcby.entity.Account;
import com.qcby.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;

@Controller
@RequestMapping("/account")
public class AccountController {
    //依赖注入
    @Autowired
    private AccountService accountService;
    
    @RequestMapping("/findAll")
    public ModelAndView findAll(){
        System.out.println("表现层:查询所有");
        //调用service的方法
        List<Account> list = accountService.findAll();
        for (Account account : list) {
            System.out.println(account);
        }
        ModelAndView mv = new ModelAndView();
        mv.setViewName("suc");
        return mv;
    }

    @RequestMapping("/save")
    public String save(Account account){
        //Service的保存方法
        accountService.save(account);
        return "suc";
    }
}

service接口和实现类代码


package com.qcby.service;

import com.qcby.entity.Account;
import java.util.List;

public interface AccountService {

    //查询所有
    public List<Account> findAll();
    
    //保存
    void save(Account account);
}

package com.qcby.service;

import com.qcby.dao.AccountDao;
import com.qcby.entity.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountDao accountDao;
    //查询所有
    @Override
    public List<Account> findAll() {
        System.out.println("业务层:查询所有");
        List<Account> list = accountDao.findAll();
        return list;
    }

    @Override
    public void save(Account account) {
        accountDao.save(account);
    }
}

dao代码


package com.qcby.dao;

import com.qcby.entity.Account;

import java.util.List;

public interface AccountDao {
    //查询所有
    public List<Account> findAll();
    //保存
    void save(Account account);
}

dao.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.qcby.dao.AccountDao">
    <select id="findAll" resultType="account">
        select * from account
    </select>
    <insert id="save" parameterType="account">
        insert into account (name,money) values(#{name},#{money})
    </insert>
</mapper>

到此这篇关于从零开始SSM搭建步骤(图文)的文章就介绍到这了,更多相关SSM搭建内容请搜索编程网以前的文章或继续浏览下面的相关文章希望大家以后多多支持编程网!

--结束END--

本文标题: 从零开始SSM搭建步骤(图文)

本文链接: https://www.lsjlt.com/news/124167.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • 从零开始SSM搭建步骤(图文)
    目录第一章:搭建整合环境1. 搭建整合环境第二章:Spring框架代码的编写第三章:Spring整合SpringMVC框架1. 搭建和测试SpringMVC的开发环境2. Sprin...
    99+
    2024-04-02
  • github项目从零开始搭建
    Github是程序员必备的开发工具之一,本文将从零开始介绍如何搭建自己的Github项目。一、注册Github账号首先,需要注册一个Github账号,访问 https://github.com/ ,点击右上角的“Sign up”按钮进入注册...
    99+
    2023-10-22
  • Docker实现从零开始搭建SOLO个人博客的方法步骤
    目录一、环境准备二、安装Docker三、安装mysql主从数据库3.1、mysql环境准备3.2、启动mysql主库从库3.3、登陆mysql主库3.4、登陆mysql从库3.5、主...
    99+
    2024-04-02
  • 一文带你从零开始搭建vue3项目
    目录说明开始1. 使用 vscode 开发工具安装vue3的插件 Volar ,在vue2中我们使用的是Vetur。2. 执行初始化及安装命令:3. 安装vue-router4. 全...
    99+
    2024-04-02
  • 如何从零开始搭建vue3项目
    这篇文章主要介绍了如何从零开始搭建vue3项目的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇如何从零开始搭建vue3项目文章都会有所收获,下面我们一起来看看吧。说明记录一次Vue3的项目搭建过程。文章基于 vu...
    99+
    2023-07-02
  • github项目怎么从零开始搭建
    这篇“github项目怎么从零开始搭建”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“github项目怎么从零开始搭建”文章吧...
    99+
    2023-07-06
  • Qt6.0开发环境搭建步骤(图文)
    一.简单介绍 2020/12/08 日,星期二,Qt6 正式发布了,这将是一个里程碑式新版本,这是新主要版本的第一个版本,标志着Qt的重要里程碑。 1.Qt的核心价值 它具有跨平台的...
    99+
    2024-04-02
  • ThinkPHP 6 视图:从零开始
    框架6.0默认只能支持PHP原生模板,如果需要使用thinkTemplate模板引擎,需要安装think-view扩展(该扩展会自动安装think-template依赖库)。 PHP原生模板 1.配置文件 默认设置为Think,因...
    99+
    2023-09-05
    ThinkPHP6 视图
  • Discuz论坛建设攻略:从零开始快速搭建
    Discuz论坛建设攻略:从零开始快速搭建 随着互联网的迅猛发展,网络论坛作为一种交流、互动的平台,在网络社区中扮演着重要的角色。而Discuz作为一款开源的论坛系统,具有丰富的功能和...
    99+
    2024-03-02
    论坛 搭建 快速 系统安装
  • Vite + React从零开始搭建一个开源组件库
    目录前言目标搭建开发环境️生成模板CSS预处理器eslint组件库编译⚡️vite的打包配置⚡️自动生成ts类型文件⚡️样式懒加载与全量加载文档❤️npm 发布与发布前的测试测试前言...
    99+
    2024-04-02
  • 如何从零开始搭建一套ui组件库
    本篇内容介绍了“如何从零开始搭建一套ui组件库”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!1. 环境准备我们在编写我们组件库的组件前,首先...
    99+
    2023-07-06
  • 从零开始搭建Go语言开发的个人网站
    从零开始搭建Go语言开发的个人网站 在当今高度数字化的时代,拥有一个个人网站已经成为许多人的追求。一个个人网站不仅可以展示个人的才艺和经验,还可以成为展示个人品牌的窗口。而作为一个程序员,搭建一个使用Go语言...
    99+
    2024-01-30
  • windowsserver2008群集搭建图文步骤
    群集是指一组相互连接、相互依赖的计算机系统或服务,它们可以作为一个整体来提供某种功能或服务。这些计算机系统或服务可以根据特定的需求配置和管理,并使用负载均衡和自动化工具来确保高可用性...
    99+
    2023-05-18
    2008群集
  • 从零开始构建 PHP GraphQL 后端:一步一步教你
    1. 前提条件 在开始构建 PHP GraphQL 后端之前,您需要确保已经满足以下前提条件: - PHP 7.2+ - Composer - GraphQL PHP 库 2. 初始化项目 首先,使用 Composer 创建一个新的 P...
    99+
    2024-02-07
    GraphQL PHP 后端 API 服务器
  • 【Flutter】macOS从零开始使用FVM搭建Flutter开发环境
    前言 本文为个人记录macOS系统使用fvm从零开始搭建flutter开发环境到项目运行的过程,非教程性质,仅供参考,如有疑问或建议,欢迎大家在评论区留言 附上开发设备配置 一、安装vscode 以vscode为编码工具 下载地址:Do...
    99+
    2023-09-02
    macos flutter xcode vscode android studio
  • Python中pip的安装指南:从零开始步骤详解
    从零开始:详解Python中pip的安装步骤,需要具体代码示例 在学习Python编程语言的过程中,我们经常需要安装各种第三方库来增强Python的功能。而要安装这些库,最方便快捷的方式之一就是使用pip。本文将详细介绍如何从零...
    99+
    2024-01-16
    Python pip 安装
  • 一文教会你从零开始画echarts地图
    目录echarts地图制作基础配置数据渲染嵌入文字地图下钻结合水印制作级联效果visualMap总结echarts地图制作 离线地图下载地址https://datav.aliyun....
    99+
    2024-04-02
  • 学习matplotlib的简单指南:从零开始安装步骤
    Python是一种非常流行的编程语言,它广泛用于各种应用程序和领域。Matplotlib是Python中最流行的可视化库之一,它提供了各种可视化工具,方便用户快速创建高质量的图表。在这篇文章中,我们将从零开始学习Matplotl...
    99+
    2024-01-17
    Python 教程
  • 手把手教你从零开始react+antd搭建项目
    之前的文章都是自己的学习日志,主要是防止自己遗忘之前遇到的坑。这次将从最基础的项目搭建开始讲起,做一个基于react和antd的后台管理系统。我会一步步进行下去,所以看完本文你哪怕不...
    99+
    2024-04-02
  • android从零开始搭建程序的方法是什么
    Android从零开始搭建程序的方法可以分为以下几个步骤:1. 安装开发环境:安装JDK、Android Studio等开发工具。2...
    99+
    2023-06-14
    android从零开始 android
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作