@Component :这将 java 类标记为 bean。它是任何 Spring 管理组件的通 用构造型。spring 的组件扫描机制现在可以将其拾取并将其拉入应用程序环境 中。 @Controller :这将一个类标记为 Spring Web MVC 控制器。标有它的 Bean 会自动导入到 I ...
分类:
其他好文 时间:
2020-06-14 13:08:34
阅读次数:
62
1.添加配置类 package org.jcut.tools; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import org ...
分类:
编程语言 时间:
2020-06-14 13:00:51
阅读次数:
56
记一个卡了我比较久的问题,之前弄的心态爆炸各种问题。 现在来记录一下,首先我vant是已经安装成功了的。 如何引入element ui npm i element-ui -S 接着按需引入,安装插件 npm install babel-plugin-component -D 修改babelrc的信息 ...
分类:
其他好文 时间:
2020-06-14 11:09:52
阅读次数:
304
接着上一讲的内容 八、编程导航中的路由传参 这里我们有这样的方式去传递路由参数 我们可以通过$touter.query的方式获取传递过来的参数, 我们不需要,在路由里面加:id,什么的去获取这个东西,我们可以特殊的方式传递数据,就好了 传递 /App.vue <router-linnk :to="{ ...
分类:
其他好文 时间:
2020-06-14 10:44:53
阅读次数:
71
const { Article } = require('../../model/acticle'); const pagination = require('mongoose-sex-page'); module.exports = async(req, res) => { const page ...
分类:
其他好文 时间:
2020-06-13 21:32:41
阅读次数:
71
深入理解vue组件 1、细节点一,vue组件和h5规范冲突 举个例子比较能说明问题: 现在是要写个表格,不用组件的形式如下: <table> <tbody> <tr><td>1</td></tr> </tbody> </table> 要使用组件化,就创建一个全局组件: Vue.component(' ...
分类:
其他好文 时间:
2020-06-13 19:28:47
阅读次数:
42
public function orderList() { $rules = [ 'order_status' => 'required|integer|in:1,2,3,4,5', 'page' => 'required|integer|min:1', 'per_page' => 'require ...
分类:
其他好文 时间:
2020-06-13 19:13:02
阅读次数:
119
消息 7405,级别 16,状态 1,过程 Queryxxxxx ,第 32 行 Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection. This ens ...
分类:
其他好文 时间:
2020-06-12 14:31:48
阅读次数:
76
// 引入mongoose 第三方模块 const mongoose = require('mongoose'); // 连接数据库 mongoose.connect('mongodb://localhost/blog', { useNewUrlParser: true, useUnifiedTop ...
分类:
其他好文 时间:
2020-06-12 14:13:49
阅读次数:
67
在做项目的过程中遇到了公司组件库没有的组件,这个时候需要按需引入elementUI ,同时公司的组件库也是按需引入的,减少项目的体积。话不多说直接上代码: 首先:我们需要借助 babel-plugin-component,npm install babel-plugin-component -D 其 ...
分类:
其他好文 时间:
2020-06-12 12:57:28
阅读次数:
201