来源:  http://how2j.cn/k/tmall_ssm/tmall_ssm-1516/1516.html?p=78908

目的:记录一个相对完整的SSM项目模板

1、工具:idea2018商业版(社区版无法识别webapp目录? 原因见https://www.cnblogs.com/bityinjd/p/9284378.html)、mysql5.5.62

项目最终目录如下:

2、新建项目

new -> project -> maven, 勾选create from archetype, 选择org.apache.maven.archetypes:maven-archetype-webapp, Next

GroupId填写com.how2java.tmall,ArtifactId:填写tmall_ssm, 一路next下去,最后点击finish,等待创建项目完成,

然后在src/main路径下添加java、resources目录,并分别标记为Sources Root和Resources Root目录,

创建的项目目录结构如下:

3、修改pom.xml,添加jar包

  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.how2java.tmall</groupId>
  5. <artifactId>tmall_ssm</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <packaging>war</packaging>
  8.  
  9. <properties>
  10. <spring.version>4.1.3.RELEASE</spring.version>
  11. <pagehelper.version>5.1.2-beta</pagehelper.version>
  12. <mysql.version>5.1.6</mysql.version>
  13. <mybatis.spring.version>1.2.3</mybatis.spring.version>
  14. <mybatis.version>3.1.1</mybatis.version>
  15. <junit.version>4.12</junit.version>
  16. <jstl.version>1.2</jstl.version>
  17. <jsqlparser.version>1.0</jsqlparser.version>
  18. <jackson.version>1.2.7</jackson.version>
  19. <servlet-api.version>3.1.0</servlet-api.version>
  20. <druid.version>1.0.18</druid.version>
  21. <log4j.version>1.2.16</log4j.version>
  22. <commons-logging.version>1.2</commons-logging.version>
  23. <commons-fileupload.version>1.2.1</commons-fileupload.version>
  24. <commons-io.version>1.3.2</commons-io.version>
  25. <commons-lang.version>2.6</commons-lang.version>
  26. <aopalliance.version>1.0</aopalliance.version>
  27. <mybatis-generator.version>1.3.5</mybatis-generator.version>
  28. </properties>
  29.  
  30. <dependencies>
  31.  
  32. <dependency>
  33. <groupId>junit</groupId>
  34. <artifactId>junit</artifactId>
  35. <version>${junit.version}</version>
  36. </dependency>
  37.  
  38. <dependency>
  39. <groupId>org.mybatis</groupId>
  40. <artifactId>mybatis</artifactId>
  41. <version>${mybatis.version}</version>
  42. </dependency>
  43.  
  44. <dependency>
  45. <groupId>org.mybatis</groupId>
  46. <artifactId>mybatis-spring</artifactId>
  47. <version>${mybatis.spring.version}</version>
  48. </dependency>
  49.  
  50. <dependency>
  51. <groupId>mysql</groupId>
  52. <artifactId>mysql-connector-java</artifactId>
  53. <version>${mysql.version}</version>
  54. </dependency>
  55.  
  56. <dependency>
  57. <groupId>com.alibaba</groupId>
  58. <artifactId>druid</artifactId>
  59. <version>${druid.version}</version>
  60. </dependency>
  61.  
  62. <dependency>
  63. <groupId>org.springframework</groupId>
  64. <artifactId>spring-context</artifactId>
  65. <version>${spring.version}</version>
  66. </dependency>
  67.  
  68. <dependency>
  69. <groupId>org.springframework</groupId>
  70. <artifactId>spring-test</artifactId>
  71. <version>${spring.version}</version>
  72. </dependency>
  73.  
  74. <dependency>
  75. <groupId>org.springframework</groupId>
  76. <artifactId>spring-beans</artifactId>
  77. <version>${spring.version}</version>
  78. </dependency>
  79.  
  80. <dependency>
  81. <groupId>org.springframework</groupId>
  82. <artifactId>spring-webmvc</artifactId>
  83. <version>${spring.version}</version>
  84. </dependency>
  85.  
  86. <dependency>
  87. <groupId>org.springframework</groupId>
  88. <artifactId>spring-jdbc</artifactId>
  89. <version>${spring.version}</version>
  90. </dependency>
  91.  
  92. <dependency>
  93. <groupId>org.springframework</groupId>
  94. <artifactId>spring-aspects</artifactId>
  95. <version>${spring.version}</version>
  96. </dependency>
  97. <!-- JSP相关 -->
  98. <dependency>
  99. <groupId>jstl</groupId>
  100. <artifactId>jstl</artifactId>
  101. <version>${jstl.version}</version>
  102. </dependency>
  103.  
  104. <dependency>
  105. <groupId>javax.servlet</groupId>
  106. <artifactId>javax.servlet-api</artifactId>
  107. <version>${servlet-api.version}</version>
  108. <scope>provided</scope>
  109. </dependency>
  110.  
  111. <!-- pageHelper -->
  112. <dependency>
  113. <groupId>com.github.pagehelper</groupId>
  114. <artifactId>pagehelper</artifactId>
  115. <version>${pagehelper.version}</version>
  116. </dependency>
  117.  
  118. <!--jsqlparser-->
  119. <dependency>
  120. <groupId>com.github.jsqlparser</groupId>
  121. <artifactId>jsqlparser</artifactId>
  122. <version>${jsqlparser.version}</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>log4j</groupId>
  126. <artifactId>log4j</artifactId>
  127. <version>${log4j.version}</version>
  128. </dependency>
  129.  
  130. <dependency>
  131. <groupId>commons-logging</groupId>
  132. <artifactId>commons-logging</artifactId>
  133. <version>${commons-logging.version}</version>
  134. </dependency>
  135.  
  136. <dependency>
  137. <groupId>commons-fileupload</groupId>
  138. <artifactId>commons-fileupload</artifactId>
  139. <version>${commons-fileupload.version}</version>
  140. </dependency>
  141.  
  142. <dependency>
  143. <groupId>commons-io</groupId>
  144. <artifactId>commons-io</artifactId>
  145. <version>${commons-io.version}</version>
  146. </dependency>
  147.  
  148. <dependency>
  149. <groupId>commons-lang</groupId>
  150. <artifactId>commons-lang</artifactId>
  151. <version>${commons-lang.version}</version>
  152. </dependency>
  153.  
  154. <dependency>
  155. <groupId>aopalliance</groupId>
  156. <artifactId>aopalliance</artifactId>
  157. <version>${aopalliance.version}</version>
  158. </dependency>
  159.  
  160. <dependency>
  161. <groupId>org.mybatis.generator</groupId>
  162. <artifactId>mybatis-generator-core</artifactId>
  163. <version>${mybatis-generator.version}</version>
  164. </dependency>
  165.  
  166. </dependencies>
  167.  
  168. <build>
  169. <finalName>${project.artifactId}</finalName>
  170. <plugins>
  171. <!-- 资源文件拷贝插件 -->
  172. <plugin>
  173. <groupId>org.apache.maven.plugins</groupId>
  174. <artifactId>maven-resources-plugin</artifactId>
  175. <version>2.7</version>
  176. <configuration>
  177. <encoding>UTF-8</encoding>
  178. </configuration>
  179. </plugin>
  180. <!-- java编译插件 -->
  181. <plugin>
  182. <groupId>org.apache.maven.plugins</groupId>
  183. <artifactId>maven-compiler-plugin</artifactId>
  184. <version>3.2</version>
  185. <configuration>
  186. <source>1.8</source>
  187. <target>1.8</target>
  188. <encoding>UTF-8</encoding>
  189. </configuration>
  190. </plugin>
  191. </plugins>
  192. <pluginManagement>
  193. <plugins>
  194. <!-- 配置Tomcat插件 -->
  195. <plugin>
  196. <groupId>org.apache.tomcat.maven</groupId>
  197. <artifactId>tomcat7-maven-plugin</artifactId>
  198. <version>2.2</version>
  199. </plugin>
  200. </plugins>
  201. </pluginManagement>
  202.  
  203. <resources>
  204. <resource>
  205. <directory>src/main/resources</directory>
  206. <includes>
  207. <include>**/*.properties</include>
  208. <include>**/*.xml</include>
  209. <include>**/*.tld</include>
  210. </includes>
  211. <filtering>false</filtering>
  212. </resource>
  213. <resource>
  214. <directory>src/main/java</directory>
  215. <includes>
  216. <include>**/*.properties</include>
  217. <include>**/*.xml</include>
  218. </includes>
  219. <filtering>false</filtering>
  220. </resource>
  221. </resources>
  222.  
  223. </build>
  224.  
  225. </project>

4、选中java目录,右键-new,新建包com.how2java.tmall.pojo,创建Category.java,用以描述商品分类信息

  1. package com.how2java.tmall.pojo;
  2.  
  3. public class Category {
  4. private Integer id;
  5.  
  6. private String name;
  7.  
  8. public Integer getId() {
  9. return id;
  10. }
  11.  
  12. public void setId(Integer id) {
  13. this.id = id;
  14. }
  15.  
  16. public String getName() {
  17. return name;
  18. }
  19.  
  20. public void setName(String name) {
  21. this.name = name;
  22. }
  23. }

同样新建包com.how2java.tmall.mapper,新建接口CategoryMapper,操作sql增、删、改、查

  1. package com.how2java.tmall.mapper;
  2.  
  3. import com.how2java.tmall.pojo.Category;
  4.  
  5. import java.util.List;
  6.  
  7. public interface CategoryMapper {
  8.  
  9. List<Category> list();
  10. }

新建com.how2java.tmall.service,新建接口CategoryService,用于实际业务,通过mapper层与数据库等建立连接

  1. package com.how2java.tmall.service;
  2.  
  3. import com.how2java.tmall.pojo.Category;
  4.  
  5. import java.util.List;
  6.  
  7. public interface CategoryService {
  8. List<Category> list();
  9. }

新建com.how2java.tmall.service.Impl包,创建CategoryServiceImpl类,实现CategoryService接口,

  1. package com.how2java.tmall.service.Impl;
  2.  
  3. import com.how2java.tmall.mapper.CategoryMapper;
  4. import com.how2java.tmall.pojo.Category;
  5. import com.how2java.tmall.service.CategoryService;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.stereotype.Service;
  8.  
  9. import java.util.List;
  10.  
  11. @Service
  12. public class CategoryServiceImpl implements CategoryService {
  13.  
  14. @Autowired
  15. CategoryMapper categoryMapper;
  16.  
  17. public List<Category> list() {
  18. return categoryMapper.list();
  19. }
  20. }

在resources目录下新建mapper目录,该目录下创建CategoryMapper.xml,namespace必须是com.how2java.tmall.mapper.CategoryMapper,以和CategoryMapper保持一致。

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.how2java.tmall.mapper.CategoryMapper">
  6. <select id="list" resultType="Category">
  7. select * from category order by id desc
  8. </select>
  9. </mapper>

5、开启日志

在resources目录下添加log4j.properties

  1. # Global logging configuration
  2. log4j.rootLogger=ERROR, stdout
  3. # MyBatis logging configuration...
  4. log4j.logger.com.how2java.tmall=TRACE
  5. # Console output...
  6. log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  7. log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  8. log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n

6、在resources目录下添加数据库连接参数配置文件jdbc.properties

  1. jdbc.driver=com.mysql.jdbc.Driver
  2. jdbc.url=jdbc:mysql://localhost:3306/tmall_ssm?useUnicode=true&characterEncoding=utf8
  3. jdbc.username=root
  4. jdbc.password=admin

7、在resources目录下新建applicationContext.xml,启动对注解的识别、数据库参数引入、配置数据源等等,

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:context="http://www.springframework.org/schema/context"
  5. xsi:schemaLocation="http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
  6. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
  7.  
  8. <context:annotation-config />
  9. <context:component-scan base-package="com.how2java.tmall.service" />
  10.  
  11. <!-- 导入数据库配置文件 -->
  12. <context:property-placeholder location="classpath:jdbc.properties"/>
  13. <!-- 配置数据库连接池 -->
  14. <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close">
  15. <!-- 基本属性 url、user、password -->
  16. <property name="url" value="${jdbc.url}" />
  17. <property name="username" value="${jdbc.username}" />
  18. <property name="password" value="${jdbc.password}" />
  19.  
  20. <!-- 配置初始化大小、最小、最大 -->
  21. <property name="initialSize" value="1" />
  22. <property name="minIdle" value="1" />
  23. <property name="maxActive" value="20" />
  24.  
  25. <!-- 配置获取连接等待超时的时间 -->
  26. <property name="maxWait" value="60000" />
  27.  
  28. <!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 -->
  29. <property name="timeBetweenEvictionRunsMillis" value="60000" />
  30.  
  31. <!-- 配置一个连接在池中最小生存的时间,单位是毫秒 -->
  32. <property name="minEvictableIdleTimeMillis" value="300000" />
  33.  
  34. <property name="validationQuery" value="SELECT 1" />
  35. <property name="testWhileIdle" value="true" />
  36. <property name="testOnBorrow" value="false" />
  37. <property name="testOnReturn" value="false" />
  38.  
  39. <!-- 打开PSCache,并且指定每个连接上PSCache的大小 -->
  40. <property name="poolPreparedStatements" value="true" />
  41. <property name="maxPoolPreparedStatementPerConnectionSize"
  42. value="20" />
  43. </bean>
  44.  
  45. <!--Mybatis的SessionFactory配置-->
  46. <bean id="sqlSession" class="org.mybatis.spring.SqlSessionFactoryBean">
  47. <property name="typeAliasesPackage" value="com.how2java.tmall.pojo" />
  48. <property name="dataSource" ref="dataSource"/>
  49. <property name="mapperLocations" value="classpath:mapper/*.xml"/>
  50. <!--分页插件,目前先注释,后面重构的时候才会使用
  51. <property name="plugins">
  52. <array>
  53. <bean class="com.github.pagehelper.PageInterceptor">
  54. <property name="properties">
  55. <value>
  56. </value>
  57. </property>
  58. </bean>
  59. </array>
  60. </property>
  61. -->
  62. </bean>
  63.  
  64. <!--Mybatis的Mapper文件识别-->
  65. <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
  66. <property name="basePackage" value="com.how2java.tmall.mapper"/>
  67. </bean>
  68.  
  69. </beans>

8、在resources目录下新建spring mvc配置文件springMVC.xml

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:context="http://www.springframework.org/schema/context"
  5. xmlns:mvc="http://www.springframework.org/schema/mvc"
  6. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  7. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
  8. http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd">
  9.  
  10. <!--启动注解识别-->
  11. <context:annotation-config/>
  12.  
  13. <context:component-scan base-package="com.how2java.tmall.controller">
  14. <context:include-filter type="annotation"
  15. expression="org.springframework.stereotype.Controller"/>
  16. </context:component-scan>
  17.  
  18. <mvc:annotation-driven />
  19.  
  20. <!--开通静态资源的访问-->
  21. <mvc:default-servlet-handler />
  22.  
  23. <!-- 视图定位 -->
  24. <bean
  25. class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  26. <property name="viewClass"
  27. value="org.springframework.web.servlet.view.JstlView" />
  28. <property name="prefix" value="/WEB-INF/jsp/" />
  29. <property name="suffix" value=".jsp" />
  30. </bean>
  31.  
  32. <!-- 对上传文件的解析-->
  33. <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"/>
  34. </beans>

9、修改web.xml,指定spring配置文件、设置中文编码、指定spring mvc配置文件

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://java.sun.com/xml/ns/javaee"
  4. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  5. version="2.5">
  6.  
  7. <!-- spring的配置文件-->
  8. <context-param>
  9. <param-name>contextConfigLocation</param-name>
  10. <param-value>classpath:applicationContext.xml</param-value>
  11. </context-param>
  12. <listener>
  13. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  14. </listener>
  15.  
  16. <!--中文过滤器-->
  17. <filter>
  18. <filter-name>CharacterEncodingFilter</filter-name>
  19. <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
  20. <init-param>
  21. <param-name>encoding</param-name>
  22. <param-value>utf-8</param-value>
  23. </init-param>
  24. </filter>
  25. <filter-mapping>
  26. <filter-name>CharacterEncodingFilter</filter-name>
  27. <url-pattern>/*</url-pattern>
  28. </filter-mapping>
  29.  
  30. <!-- spring mvc核心:分发servlet -->
  31. <servlet>
  32. <servlet-name>mvc-dispatcher</servlet-name>
  33. <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  34. <!-- spring mvc的配置文件 -->
  35. <init-param>
  36. <param-name>contextConfigLocation</param-name>
  37. <param-value>classpath:springMVC.xml</param-value>
  38. </init-param>
  39. <load-on-startup>1</load-on-startup>
  40. </servlet>
  41. <servlet-mapping>
  42. <servlet-name>mvc-dispatcher</servlet-name>
  43. <url-pattern>/</url-pattern>
  44. </servlet-mapping>
  45.  
  46. </web-app>

10、创建com.how2java.tmall.controller包,新建CategoryController类,响应请求

  1. package com.how2java.tmall.controller;
  2.  
  3. import com.how2java.tmall.pojo.Category;
  4. import com.how2java.tmall.service.CategoryService;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.stereotype.Controller;
  7. import org.springframework.ui.Model;
  8. import org.springframework.web.bind.annotation.RequestMapping;
  9. import org.springframework.web.bind.annotation.ResponseBody;
  10.  
  11. import java.util.List;
  12.  
  13. @Controller
  14. @RequestMapping("")
  15. public class CategoryController {
  16. @Autowired
  17. CategoryService categoryService;
  18.  
  19. @RequestMapping("admin_category_list")
  20. public String list(Model model) {
  21. List<Category> cs = categoryService.list();
  22. model.addAttribute("cs", cs);
  23. return "admin/listCategory";
  24. }
  25. }

11、junit测试,添加数据

创建java同级目录test,并标记为Test Sources Root,新建com.how2java.tmall包,新建CategoryTest类

  1. package com.how2java.tmall;
  2.  
  3. import org.junit.Before;
  4. import org.junit.Test;
  5.  
  6. import java.sql.Connection;
  7. import java.sql.DriverManager;
  8. import java.sql.Statement;
  9.  
  10. public class CategoryTest {
  11.  
  12. private Statement s;
  13.  
  14. @Before
  15. public void init() throws Exception {
  16. try {
  17. Class.forName("com.mysql.jdbc.Driver");
  18. } catch (ClassNotFoundException e) {
  19. e.printStackTrace();
  20. }
  21.  
  22. Connection c = DriverManager.getConnection("jdbc:mysql://localhost:3306/tmall_ssm?useUnicode=true&characterEncoding=utf8",
  23. "root", "admin");
  24. s = c.createStatement();
  25. }
  26.  
  27. @Test
  28. public void insertData() throws Exception {
  29. for (int i = 1; i <=5 ; i++) {
  30. String sqlFormat = "insert into category values (null, '测试分类%d')";
  31. String sql = String.format(sqlFormat, i);
  32. s.execute(sql);
  33. }
  34. }
  35. }

12、创建CategoryController类对应的视图

WEB-INF下创建jsp目录。 然后在jsp目录中创建admin目录,接着创建listCategory.jsp文件

  1. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  2. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  3. <html>
  4. <head>
  5. <title>商品分类</title>
  6. <style type="text/css">
  7. table
  8. {
  9. border-collapse:collapse;
  10. width:300px;
  11. }
  12.  
  13. table, td, th
  14. {
  15. border:1px solid black;
  16. }
  17. </style>
  18. </head>
  19.  
  20. <body>
  21. <div>
  22. <table>
  23. <thead>
  24. <tr>
  25. <th>ID</th>
  26. <th>分类</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. <c:forEach items="${cs}" var="c">
  31.  
  32. <tr>
  33. <td>${c.id}</td>
  34. <td>${c.name}</td>
  35. </tr>
  36. </c:forEach>
  37. </tbody>
  38. </table>
  39. </div>
  40. </body>
  41. </html>

13、配置tomcat并运行,在浏览器输入http://localhost:8080/admin_category_list访问页面

天猫SSM项目学习记录(一)----第一个相对完整的SSM项目的更多相关文章

  1. [Prodinner项目]学习分享_第一部分_Model层

    事先声明一下,小弟我是菜鸟一个,在研究大半天之后,基本会开发一些简单的功能了,特此分享一下,也为自己做一个笔记. 项目简介: MVC4 , EF5 , Code First , 多层架构 开发工具:V ...

  2. 01-Flutter移动电商实战-项目学习记录

    一直想系统性的学习一下 Flutter,正好看到该课程<Flutter移动电商实战>的百度云资源,共 69 课时,由于怕自己坚持不下去(经常学着学着就不学了),故采用博客监督以记之. 1. ...

  3. Flutter移动电商实战 --(1)项目学习记录

    1.项目相关截图 2.项目知识点梳理图 Dio2.0: Dio是一个强大的 Dart Http 请求库,支持 Restful API.FormData.拦截器.请求取消等操作. Swiper: Swi ...

  4. C#项目学习记录

    1,   Visual Studio Code 添加VS 2017的开发人员命令提示符---C#编译环境 2,  C#编译器和CLI的安装 注意:自己的电脑上配置环境变量时,配置在系统变量的Path中 ...

  5. 【学习记录】第一章 数据库设计-《SQL Server数据库设计和开发基础篇视频课程》

    一.课程笔记 1.1  软件开发周期 (1)需求分析阶段 分析客户的业务和数据处理需求. (2)概要设计阶段 设计数据库的E-R模型图,确认需求信息的正确和完整. /* E-R图:实体-关系图(Ent ...

  6. Py3+PyQt5+Eric6:学习记录之第一天:点击按钮获取文本框的值并输出。

    一.使用qt designer拖拽界面. 使用qtdesigner拖拽界面:

  7. 开源项目Material Calendar View 学习记录 (一)

    开源项目Material Calendar View 学习记录 Github: https://github.com/prolificinteractive/material-calendarview ...

  8. java开源项目之IQQ学习记录之项目环境搭建与启动

    本文链接地址:http://blog.csdn.net/sushengmiyan/article/details/18779727 作者:sushengmiyan 现在就码字说说今天晚上搞定的一个项目 ...

  9. 自我总结(六)---(学习j2ee+j2ee第一阶段项目)

    自我完善的过程就是在不断的自我总结不断的改进. 学习了Struts2 Spring Hibernate. 十天前结束了这个课程.也考试了.这次考试老师说机试考的还不错.其实就是一个简单的用户登录,进行 ...

随机推荐

  1. Android Service Summary

     In the Androird, service is a none-UI background process that is doing some specific jobs.   6.1 Ex ...

  2. python常量和变量

    1.1 常量 常量是内存中用于保存固定值的单元,在程序中常量的值不能发生改变:python并没有命名常量,也就是说不能像C语言那样给常量起一个名字. python常量包括:数字.字符串.布尔值.空值: ...

  3. oracle函数 DUMP(w[,x[,y[,z]]])

    [功能]返回数据类型.字节长度和在内部的存储位置. [参数] w为各种类型的字符串(如字符型.数值型.日期型……) x为返回位置用什么方式表达,可为:8,10,16或17,分别表示:8/10/16进制 ...

  4. 「BZOJ2654」tree

    「BZOJ2654」tree 最小生成树+二分答案. 最开始并没有觉得可以二分答案,因为答案并不单调啊. 其实根据题意,白边的数目肯定大于need条,而最小生成树的白边数并不等于need(废话),可以 ...

  5. 基于jQuery+JSON的省市联动效果

    省市区联动下拉效果在WEB应用中使用非常广泛,尤其在一些会员信息系统.电商网站最为常见,开发者一般使用AJAX实现无刷新下拉联动. 本文将讲述利用jQuery插件,通过读取JSON数据,实现无刷新动态 ...

  6. [转][ASP.NET Core 3框架揭秘] 跨平台开发体验: Windows [中篇]

    我们在<上篇>利用dotnet new命令创建了一个简单的控制台程序,接下来我们将它改造成一个ASP.NET Core应用.一个ASP.NET Core应用构建在ASP.NET Core框 ...

  7. Python--day62--ORM的使用

    4.Django里ORM的使用 1,手动创建数据库 2,在settings.py里面,配置数据库的连接信息 3,在项目/__init__.py告诉Django用pymysql模块代替MySQLdb(不 ...

  8. Laravel5 call to undefined function openssl cipher iv length() 报错 PHP7开启OpenSSL扩展失败

    在安装laravel5.5后, 访问显示报错. call to undefined function openssl cipher iv length() 经查为php7.1的OpenSSL扩展加载失 ...

  9. H3C IPv6地址解析

  10. H3C TFTP协议介绍