实现方法:thymeleaf模板引擎加上BootStrap 准备工作: 1.将准备好的Bootstrap模板放在templates下让SpringBoot进行自动配置 SpringBoot自动配置会自动到(idea的shif键连按两下进入全局搜索) 2.Bootstrp的引入(这里是maven以de ...
分类:
编程语言 时间:
2019-12-11 21:05:08
阅读次数:
86
Spring Boot 项目,在 Spring Tool Suite 4, Version: 4.4.0.RELEASE 运行没有问题,将项目中的静态资源和页面复制到 IDEA 的项目中,除了 IDE 不同,其他基本相同。 运行 IDEA 中的项目,然后访问,出现异常: Exception proc ...
分类:
移动开发 时间:
2019-12-10 22:40:29
阅读次数:
759
1、pom.xml 加入maven 依赖 <!-- 引入 freemarker 模板依赖 --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</a ...
分类:
编程语言 时间:
2019-12-09 13:30:06
阅读次数:
143
前面做好了服务的管理,接下来是服务版本的管理,和服务类似,版本也有增删改查。先在服务的管理页面做一个入口,如下图: 需要在上一步的服务管理页面增加按钮、按钮方法,点击按钮跳转时要打开一个新的页面,所以还要增加对应的页面视图。 页面方法 templates/microservice/service.h ...
分类:
其他好文 时间:
2019-12-08 23:05:28
阅读次数:
132
首先要找到修改代码的地方,在你的模板处,或主要CSS放置处EMLOG模板位置在:/content/templates/你的模板名/找到style.css把以下代码放到最下面即可! img:hover { -webkit-animation:sucaijiayuan 1s .1s ease both; ...
分类:
Web程序 时间:
2019-12-08 10:25:28
阅读次数:
135
页面显示: Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Fri Dec 06 23:26:03 CST 2019 Th ...
分类:
移动开发 时间:
2019-12-07 01:00:19
阅读次数:
130
为了避免单点故障,生产环境中redis升级为集群模式,需要对redis集群进行监控,一旦有节点出现故障便触发报警。Redis有自带的redis-cli客户端,通过clusterinfo命令能查询到集群的运行情况,我们可以写个shell脚本,通过zabbix来调用这个脚本实现集群的监控。一、clusterinfo命令的使用命令格式:redis-cli-h[hostname]-p[port]-a[pa
分类:
系统相关 时间:
2019-12-06 19:03:46
阅读次数:
91
ORM查询优化 only 与defer select_related 与 prefetch_related MTV 与MVC模型 django自称为是MTV框架 本质其实还是MVC MTV M:models T:templates V:views MVC M:models V:views C:con ...
分类:
其他好文 时间:
2019-12-01 16:48:28
阅读次数:
89
inclusion_tag的用途 inclusion_tag可以实现从后台往前端传递绑定数据的样式,一般用来动态显示模板页面中显示固定格式的数据。 inclusion_tag的用法 step1 : 编写前端页面样式模板 rbac/templates/rbac/static_menu.html ste ...
分类:
其他好文 时间:
2019-11-30 00:10:33
阅读次数:
149
'use strict' // Template version: 1.3.1 // see http://vuejs-templates.github.io/webpack for documentation. const path = require('path') module.exports ...
分类:
Web程序 时间:
2019-11-29 10:37:55
阅读次数:
97