1.@controller 控制器(注入服务) 2.@service 业务(注入dao) 3.@repository dao(实现dao访问) 4.@component (把普通pojo实例化到spring容器中,相当于配置文件中的<bean id="" class=""/>) 5.@Compone ...
分类:
编程语言 时间:
2020-02-04 15:38:43
阅读次数:
61
报错信息:org.thymeleaf.exceptions.TemplateInputException: Error resolving template "xxxxx", template might not exist or might not be accessible by any of ...
分类:
编程语言 时间:
2020-02-04 10:30:22
阅读次数:
144
在家无聊复习一下shiro 打开了之前的项目,由于lombok插件安装不了,不知道idea抽什么风所以get,set方法报错了,将就一下 只看shiro的使用,配置在shiro分类中有 登录方法 package com.zys.sys.controller; import com.zys.sys.c ...
分类:
其他好文 时间:
2020-02-03 20:55:36
阅读次数:
150
一、在两个nodes节点上安装controller-manager服务#221/222机器:bin]#vi/opt/kubernetes/server/bin/kube-controller-manager.sh#!/bin/sh./kube-controller-manager\--cluster-cidr172.7.0.0/16\--leader-electtrue\--log-dir/dat
分类:
其他好文 时间:
2020-02-03 09:56:56
阅读次数:
99
前言 依赖注入的好处和特点这里不讲述了,本篇文章主要介绍gin框架如何实现依赖注入,将项目解耦。 项目结构 ├── cmd 程序入口 ├── common 通用模块代码 ├── config 配置文件 ├── controller API控制器 ├── docs 数据库文件 ├── models 数 ...
分类:
其他好文 时间:
2020-02-02 23:50:29
阅读次数:
80
Spring MVC中的Controller可以以实体类接受来自客户端的form表单,表单的字段自动构成实体类对象 客户端的表单 实体类 服务端接收 ...
分类:
编程语言 时间:
2020-02-02 19:59:48
阅读次数:
69
一、前言 JMeter中的Logic Controller用于为Test Plan中的节点添加逻辑控制器。JMeter中的Logic Controller 分为两类:一类用来控制Test Plan 执行过程中节点的逻辑执行顺序,如: Loop Controller. If Controller等;另 ...
分类:
其他好文 时间:
2020-02-02 19:45:05
阅读次数:
90
第12章 Swing用户组件 Swing设计者采用了模型 视图 控制器(model view controller,MVC)模式来设计用户组件 它限制了一个对象拥有的功能数量,在设计组件时一般实现三个独立的类: + 模型(model):存储内容,必须实现改变内容或者查找内容的方法,模型是完全不可见的 ...
分类:
编程语言 时间:
2020-02-02 18:04:04
阅读次数:
94
html 提交 “你好”,后台显示 “ä½ å¥½” 。 经检验是将 URL编码为 UTF-8,而URL使用 ISO-8859-1。 解决办法: 一: 在 Controller 进行转码。 username=new String(username.getBytes("ISO-8859-1"), "U ...
分类:
其他好文 时间:
2020-02-02 18:00:12
阅读次数:
101
一、controller节点安装ntp 1 安装ntp服务 yum install chrony 2 Edit the chrony.conf file and add, change, or remove the following keys as necessary for your envir ...
分类:
其他好文 时间:
2020-02-02 17:37:28
阅读次数:
80