随笔分类 - Java
摘要:java.version Java 运行时环境版本java.vendor Java 运行时环境供应商java.vendor.url Java 供应商的 URLjava.home Java 安装目录java.vm.specification.version Java 虚拟机规范版本java.vm.sp
阅读全文
摘要:引用: https://blog.csdn.net/qq_22498277/article/details/72149038脚本下载地址:http://files.cnblogs.com/flowwind/java_windows环境变量自动设置脚本.zip@echo off :: TODO:设置j
阅读全文
摘要:<#if (id?index_of('Base') >= 0)> <choose> <when test="rootOrgID !=null and rootOrgID != ''"> rootOrgID = ${"#{"+'rootOrgID'+"}"} </when> <otherwise> b
阅读全文
摘要:1.mybatis-config.xml:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE configuration PUBLIC "-//ibatis.apache.org//DTD Config 3.0//EN" "http://ibatis.a
阅读全文
摘要:## Mybatis 配置 mybatis.type-aliases-package=com.xfind.core.entity.xianyu mybatis.mapper-locations=classpath:mapper/*.xml #使全局的映射器启用或禁用缓存。 mybatis.confi
阅读全文
摘要:访问方法:<if test="@com.csget.constant.ConstantApp@getUser('mobile')== 'kf'"> <![CDATA[ AND 1=2 ]]> </if>访问变量:直接写变量名就行。
阅读全文
摘要:mvn install:install-file -DgroupId=com.test -DartifactId=test -Dversion=1.0.0 -Dpackaging=jar -Dfile=D:/test -1.0.0.jar
阅读全文
摘要:今天有个postmapping方法,地址都正确,就是死活进不去,真是奇怪了。终于从日志中得出些端倪,见下:只有这个属性报错,恰恰这个属性是Date型。这句话说得更清楚: "defaultMessage":"Failed to convert property value of type 'java.
阅读全文
摘要:网上有很多介绍,主要有两种。1.在启动类中注入bean/** * 集成fastjson * * @return */ @Bean public HttpMessageConverters fastJsonHttpMessageConverters() { // 1. 需要定义一个converter转
阅读全文
摘要:项目地址:https://github.com/pagehelper/pagehelper-spring-boot简单使用:1.在pom文件中添加<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-
阅读全文
摘要:转载自:https://www.2cto.com/database/201409/338155.html第一种方案 DAO层的函数方法 Public User selectUser(String name,String area);对应的Mapper.xml <select id="selectUs
阅读全文
摘要:需求是:递归查询资源1.资源类 EntityBaseResource:public final class EntityBaseResource { private Long resID = 0l; private String resName = ""; private String urlPat
阅读全文
摘要:在开发时经常需要调整JS,但是调整后由于页面缓存的原因,看不到实时效果。开发环境:springboot+thymeleaf1.配置文件多模式2.获得当前的激活的模式和随机数import org.springframework.beans.factory.annotation.Autowired; i
阅读全文
摘要:1.map在后端放入一个mapMap<String, String> mapDict = serviceBaseDict.selectMap(ConstantDictType.SYSINFO); model.addAttribute("mapDict", mapDict);在页面中访问这个map<b
阅读全文
摘要:1.th:href获得当前的根路径 th:href="@{/}"2.select输出并自动选中<select class="form-control select2" id="stage2CoachID" name="stage2CoachID" th:value="${class.stage2Co
阅读全文
摘要:原文地址:https://www.cnblogs.com/flying607/p/8494568.html服务端配置: # 关闭保护机制 eureka.server.enable-self-preservation=false #心跳时间间隔 eureka.instance.lease-renewa
阅读全文
摘要:服务端 请见 http://www.cnblogs.com/huiy/p/8668005.html客户端:主启动类import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfig
阅读全文
摘要:在写客户端程序的时候,总是报'com.netflix.discovery.DiscoveryClient' that could not be found。原因在于导入了错误的类:com.netflix.discovery.DiscoveryClient应该是引用:org.springframewo
阅读全文
摘要:环境:springboot 2.0.0 + springcloud Finchley.M9pom.xml:<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:x
阅读全文
摘要:在eclipse中用STS生成了一个springcloud应用,pom.xml的核心配置如下:<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId
阅读全文

浙公网安备 33010602011771号