07 2017 档案

spring boot 中 事务配置
摘要:package org.whm.appcore; import java.util.Properties; import javax.sql.DataSource; import org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator; import org.springframework.beans.fac... 阅读全文

posted @ 2017-07-31 11:10 正义的伙伴! 阅读(401) 评论(0) 推荐(0) 编辑

mybatis 配置文件
摘要:mybatis.xml mybatis mapper 头文件 阅读全文

posted @ 2017-07-30 21:25 正义的伙伴! 阅读(1180) 评论(0) 推荐(0) 编辑

spring boot 数据源 配置
摘要:#数据库访问配置 #mysql #spring.datasource.type=com.alibaba.druid.pool.DruidDataSource #spring.datasource.driver-class-name=com.mysql.jdbc.Driver #spring.datasource.url=jdbc:mysql://localhost:3306/blog #orac... 阅读全文

posted @ 2017-07-30 18:57 正义的伙伴! 阅读(2713) 评论(1) 推荐(0) 编辑

spring boot 静态资源。。
摘要:spring Boot 默认为我们提供了静态资源处理,使用 WebMvcAutoConfiguration 中的配置各种属性。 建议大家使用Spring Boot的默认配置方式,如果需要特殊处理的再通过配置进行修改。 如果想要自己完全控制WebMVC,就需要在@Configuration注解的配置类 阅读全文

posted @ 2017-07-30 17:04 正义的伙伴! 阅读(1178) 评论(0) 推荐(0) 编辑

spring boot 配置 beetl 视图解析器
摘要:package org.whm.core; import org.beetl.core.resource.ClasspathResourceLoader; import org.beetl.ext.spring.BeetlGroupUtilConfiguration; import org.beetl.ext.spring.BeetlSpringViewResolver; import org... 阅读全文

posted @ 2017-07-30 16:21 正义的伙伴! 阅读(4853) 评论(0) 推荐(0) 编辑

spring 最小化头文件
摘要: 阅读全文

posted @ 2017-07-29 09:51 正义的伙伴! 阅读(361) 评论(0) 推荐(1) 编辑

spring 使用junit
摘要:需要 spring-test 和 junit 阅读全文

posted @ 2017-07-28 10:23 正义的伙伴! 阅读(126) 评论(0) 推荐(0) 编辑

spring aspectj 注解
摘要:Pointcut 是指那些方法需要被执行"AOP",是由"Pointcut Expression"来描述的.Pointcut可以有下列方式来定义或者通过&& || 和!的方式进行组合. args()@args()execution()this()target()@target()within()@w 阅读全文

posted @ 2017-07-27 14:01 正义的伙伴! 阅读(120) 评论(0) 推荐(0) 编辑

python 根据 数据库创建java 文件
摘要:#coding=utf-8 import pymysql import os import re # 包全路径 packagepath=r'E:\idea工程\dc-exam\dc-exam\src\main\java\org\dcexam\cms\module\entity'.decode('utf-8') # 包名称 packageName="org.dcexam.cms.modul... 阅读全文

posted @ 2017-07-26 17:05 正义的伙伴! 阅读(400) 评论(0) 推荐(0) 编辑

spring boot app
摘要:一个demo 可以参考一下 AppConfig pom.xml app.yml 启动 : mvn spring-boot:run 或者 直接运行main 方法 阅读全文

posted @ 2017-07-26 12:59 正义的伙伴! 阅读(1386) 评论(0) 推荐(0) 编辑

tomcat 修改根路径
摘要:修改setting.xml 在 </Host> 正上面 添加 debug 显示 启动信息,0最少,9最多 crossContext 共享 session 阅读全文

posted @ 2017-07-26 12:22 正义的伙伴! 阅读(173) 评论(0) 推荐(0) 编辑

maven 发布 到 远程 tomcat
摘要:需要修改3个地方 首先 maven setting.xml 在 servers 节点 中 添加 一个 server 然后 在 tomcat 中 添加 一个用户 tomcat-users.xml 最后 使用 maven tomcat7-maven-plugin 插件 首次发布 tomcat7:depl 阅读全文

posted @ 2017-07-26 12:14 正义的伙伴! 阅读(187) 评论(0) 推荐(0) 编辑

spring boot 加载配置 文件
摘要:在springboot启动的过程中,默契情况下会在classpath路径下加载application.properties当做系统配置文件,但有时候我们想要替换成另一个文件,可以 通过以下方式: 一、在启动类里配置默认的properties文件,如下图代码 二、 SpringApplication 阅读全文

posted @ 2017-07-26 09:51 正义的伙伴! 阅读(265) 评论(0) 推荐(0) 编辑

spring boot中 启用aspectj
摘要:xml中 加入上边的依赖。。。 application.yml 中 添加以上。。。 代理失效--??? 不能使 private 方法 坑。。。。 阅读全文

posted @ 2017-07-26 09:15 正义的伙伴! 阅读(6376) 评论(1) 推荐(0) 编辑

关闭 chrome 自动填充
摘要:在用户名那里添加 autocomplete="off" , 在密码那里添加 autocomplete="new-password" 或者在 第一行 添加 也可以。就是第一个 元素上 加入 autocomplete="off" 阅读全文

posted @ 2017-07-25 09:58 正义的伙伴! 阅读(302) 评论(0) 推荐(0) 编辑

js 返回 差 集
摘要:另外,js 中 分组 正则并不能以此返回所有,需要while循环来返回所有匹配项。。。坑 js replace方法并不会 作用于它本身,需要一个值来接收它。。不管什么语言都一样。。 阅读全文

posted @ 2017-07-19 16:55 正义的伙伴! 阅读(315) 评论(0) 推荐(0) 编辑

ueditor chrome bug
摘要:一、概述: 关于UEditor在谷歌浏览Chrome打开选择指上传图片,发现【点击选择图片】时无法立即弹出选择框,而是等4-7秒钟才显示出来的BUG,试了N多方法,改层级都用了,也无效。在网上找到了一个篇文章,按教程发现没有找到这个需要修改的问题,然后自己又鼓捣着找到了。然后就解决了这个bug。 二 阅读全文

posted @ 2017-07-19 13:46 正义的伙伴! 阅读(196) 评论(0) 推荐(0) 编辑

maven 设置 编码 ,jdk 版本
摘要:jdk1.8 true 1.8 1.8 1.8 1.8 ... 阅读全文

posted @ 2017-07-18 22:12 正义的伙伴! 阅读(186) 评论(0) 推荐(0) 编辑

java Response 设置中文编码
摘要:response.setHeader("Content-type", "text/html;charset=UTF-8"); response.setCharacterEncoding("utf-8"); response.setContentType("text/html;charset=UTF-8"); 阅读全文

posted @ 2017-07-18 17:30 正义的伙伴! 阅读(598) 评论(0) 推荐(0) 编辑

adminLte 解决菜单栏 bug
摘要:<ul class="sidebar-menu" data-widget="tree"> 功能菜单 点击 不隐藏第三级 子菜单。。。。在 admin.min.js 第 660 行 h.prototype.collapse 添加 b.find('.treeview-menu').css('displa 阅读全文

posted @ 2017-07-18 14:45 正义的伙伴! 阅读(2560) 评论(0) 推荐(0) 编辑

java 反射 处理 空值
摘要:另外,java 命名 时 。属性最好不要有 下划线 , 否则 可能会粗错。。。。。 阅读全文

posted @ 2017-07-14 15:21 正义的伙伴! 阅读(447) 评论(0) 推荐(0) 编辑

python 批量下载 spring 的 xsd
摘要:#coding=utf-8 import os import urllib import urllib2 import re from bs4 import BeautifulSoup # 利用 urllib.urlretrieve() 函数进行下载。非常方便 import socket #超时时间 socket.setdefaulttimeout(5) # 一个空文件夹 basedir=... 阅读全文

posted @ 2017-07-14 07:48 正义的伙伴! 阅读(195) 评论(0) 推荐(0) 编辑

spring自定义 xsd 位置
摘要:与元素类型 "beans" 相关联的属性 "xsi:schemaLocation" 的前缀 "xsi" 未绑定。 解决办法:(绿色字体) 其中 springMvc: 阅读全文

posted @ 2017-07-14 00:41 正义的伙伴! 阅读(484) 评论(0) 推荐(0) 编辑

maven 打包 包含xml
摘要:dc-exam src/main/java **/*.properties **/*.xml ... 阅读全文

posted @ 2017-07-13 15:13 正义的伙伴! 阅读(463) 评论(0) 推荐(0) 编辑

maven 配置jetty 插件
摘要:jetty 9 应 这样配置 tomcat7 插件: 阅读全文

posted @ 2017-07-13 15:12 正义的伙伴! 阅读(237) 评论(0) 推荐(0) 编辑

spring 和 spirngMvc 中 异常处理
摘要:spring 中 的 异常处理 使用的是aspectj <!-- 注解aop,支持注解 --> <aop:aspectj-autoproxy /> 事务 切点配置 <!-- 配置参与事务的类 --> <aop:config expose-proxy="true" proxy-target-class 阅读全文

posted @ 2017-07-13 12:48 正义的伙伴! 阅读(185) 评论(0) 推荐(0) 编辑

aspectj 与 spring 自定义注解
摘要:** * ErrorCode: * * @author yangzhenlong * @since 2016/7/21 */ @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @Documented @Inherited public @interface ErrorException { int... 阅读全文

posted @ 2017-07-12 17:03 正义的伙伴! 阅读(193) 评论(0) 推荐(0) 编辑

easyui
摘要:datagrid 总宽度为100 到 95 之间。注意调试。。 或者是96.......... 阅读全文

posted @ 2017-07-12 15:31 正义的伙伴! 阅读(99) 评论(0) 推荐(0) 编辑

$.ajax 错误信息
摘要:$.extend({ getHtml:function(url,callback){ $.ajax({ dataType:"html", url:url, timeout:1500, success:callback, error:function(XMLHttpRequest, textStatu 阅读全文

posted @ 2017-07-12 13:58 正义的伙伴! 阅读(354) 评论(0) 推荐(0) 编辑

spring 事务 配置 多个
摘要:Spring中事务控制相关配置: 其中的“aop:pointcut”标签中"expression"的写法规则如下: execution(modifiers-pattern? ret-type-pattern declaring-type-pat... 阅读全文

posted @ 2017-07-12 11:06 正义的伙伴! 阅读(182) 评论(0) 推荐(0) 编辑

maven 中 指定jdk 和 编译编码,仓库位置
摘要:jdk1.8 true 1.8 1.8 1.8 1.8 ... 阅读全文

posted @ 2017-07-12 10:40 正义的伙伴! 阅读(678) 评论(0) 推荐(0) 编辑

springmvc 4.x 转json
摘要:application/json;charset=UTF-8 text/html;charset=UTF-8 ... 阅读全文

posted @ 2017-07-11 16:26 正义的伙伴! 阅读(106) 评论(0) 推荐(0) 编辑

C# 添加vertical 属性上下边框消失问题
摘要:点击这里的曲别针就好了。。。。 自定义控件主题。。。。。 #学习地址: http://www.cnblogs.com/anding/p/4993655.html 阅读全文

posted @ 2017-07-09 20:38 正义的伙伴! 阅读(171) 评论(0) 推荐(0) 编辑

python 字符串 操作
摘要:去空格及特殊符号 复制字符串 连接字符串 查找字符 比较字符串 扫描字符串是否包含指定的字符 字符串长度 将字符串中的大小写转换 追加指定长度的字符串 追加指定长度的字符串 字符串指定长度比较 复制指定长度的字符 将字符串前n个字符替换为指定的字符 扫描字符串 扫描字符串 翻转字符串 查找字符串 分 阅读全文

posted @ 2017-07-08 00:44 正义的伙伴! 阅读(222) 评论(0) 推荐(0) 编辑

python 批量修改包名
摘要:decode的作用是将其他编码的字符串转换成unicode编码,如str1.decode('gb2312'),表示将gb2312编码的字符串str1转换成unicode编码。 encode的作用是将unicode编码转换成其他编码的字符串,如str2.encode('gb2312'),表示将unic 阅读全文

posted @ 2017-07-07 23:30 正义的伙伴! 阅读(557) 评论(0) 推荐(0) 编辑

sublime 显示 python 错误信息
摘要:默认的编译器可以直接按Ctrl+B编译运行Python,并在控制台输出结果.美中不足的是无法输出中文,需要自己手动配置一番。 在Sublime Text 3 中依次点击菜单Tools->build system->New build system,粘贴下方的代码并保存为python.sublime- 阅读全文

posted @ 2017-07-07 17:33 正义的伙伴! 阅读(1448) 评论(0) 推荐(0) 编辑

python 中文路径问题
摘要:Python直接读取中文路径的文件时失败,可做如下处理: inpath = 'D:/work/yuanxx/在线导航/驾车导航/walk_log/20130619_172355.txt' uipath = unicode(ipath , "utf8") 然后用"uipath"经过编码后的路径去ope 阅读全文

posted @ 2017-07-07 16:56 正义的伙伴! 阅读(716) 评论(0) 推荐(0) 编辑

spring boot 很好的文章
摘要:http://blog.csdn.net/isea533/article/details/50278205 阅读全文

posted @ 2017-07-07 13:57 正义的伙伴! 阅读(90) 评论(0) 推荐(0) 编辑

DokanLibrary 卸载
摘要:如果不小心安装了旧版。。。请卸载 在 c 盘中搜索 doken 其中有一个文件叫dokan.sys 它在C:\Windows\System32\drivers 文件夹中。。。放心删掉之。。 太坑了。。。。 阅读全文

posted @ 2017-07-05 23:57 正义的伙伴! 阅读(2924) 评论(0) 推荐(0) 编辑

dokany github
摘要:https://github.com/dokan-dev/dokany 阅读全文

posted @ 2017-07-05 23:39 正义的伙伴! 阅读(560) 评论(0) 推荐(0) 编辑

windwos-sshfs
摘要:从 http://www.jianshu.com/p/d79901794e3d 转载 目的 最近因为需要在linux虚拟机里进行开发程序,虽然在linux里有超强的编辑器vim,但vim开发html前台代码并没有某些编辑器如sublime高效,在linux下使用sublime的话又要安装桌面环境,而 阅读全文

posted @ 2017-07-05 23:02 正义的伙伴! 阅读(432) 评论(0) 推荐(0) 编辑

mysql 用户操作
摘要:注:我的运行环境是widnows xp professional + MySQL5.0 一, 创建用户: 命令:CREATE USER 'username'@'host' IDENTIFIED BY 'password'; 说明:username - 你将创建的用户名, host - 指定该用户在哪 阅读全文

posted @ 2017-07-05 21:52 正义的伙伴! 阅读(140) 评论(0) 推荐(0) 编辑

java 简单封装resultMap返回对象为map
摘要:public class DbUtils { private static String host = "47.93.******"; private static String port = "3306"; private static String username = "*****"; private static String password = "**... 阅读全文

posted @ 2017-07-05 20:56 正义的伙伴! 阅读(5660) 评论(0) 推荐(0) 编辑

freemarker 遍历树形菜单
摘要:参考以上代码,童叟无欺,freemarker是真的强大啊。。如果是使用jsp。。。恐怕得自定义标签了-- 阅读全文

posted @ 2017-07-05 17:18 正义的伙伴! 阅读(2451) 评论(0) 推荐(0) 编辑

python 正则表达式
摘要:python 通过 () 来进行分组。。。。 也可以给各个组取名字,例如,给第一个数组取名叫first p=re.compile('(?P<first>\d)-(\d)-(\d)') 详细文档: 阅读全文

posted @ 2017-07-05 16:17 正义的伙伴! 阅读(124) 评论(0) 推荐(0) 编辑

python BeautifulSoup基本用法
摘要:处理jsp页面会出现bug。。。 所以。。不要使用BeautifulSoup处理 jsp和php等脚本页面。。。需要用正则来写。。。这是我摸索半天得来的结论。。。。。 阅读全文

posted @ 2017-07-05 16:02 正义的伙伴! 阅读(270) 评论(0) 推荐(0) 编辑

sublime中正则替换
摘要:匹配 <header></header> , “.” 是匹配任意 非 换行 符号 而 \s\S 匹配任何符号 匹配div class为navbar 的 div <div class="navbar bs-docs-nav" role="banner">([\s\S]*)</nav>(\n[\t]*) 阅读全文

posted @ 2017-07-05 11:16 正义的伙伴! 阅读(5488) 评论(1) 推荐(0) 编辑

python 库 网站
摘要:https://pypi.python.org/pypi/lxml/3.8.0 阅读全文

posted @ 2017-07-04 22:37 正义的伙伴! 阅读(229) 评论(0) 推荐(0) 编辑

maven 更新子工程中依赖的父工程 版本
摘要:eclipse 中: versions:update-child-modules cmd: mvn versions:update-child-modules 阅读全文

posted @ 2017-07-03 12:57 正义的伙伴! 阅读(530) 评论(0) 推荐(0) 编辑

ubuntu 16 64位编译安装php
摘要:如出现一下错误:::::: 错误1: 编译安装php7 报错 configure: error: Cannot find OpenSSL's libraries 1)解决步骤: 参考:http://linuxzj.blog.51cto.com/6160158/1632132 root@test2:~ 阅读全文

posted @ 2017-07-02 23:39 正义的伙伴! 阅读(138) 评论(0) 推荐(0) 编辑

maven mirrorOf
摘要:转载 http://blog.csdn.net/isea533/article/details/21560089 在maven中配置一个mirror时,mirror通常会设置成*,还有可能是一个具体的值,还有可能是逗号隔开的几个值.. 例如: 1.* 2.repo3 3.repo1,repo2,*, 阅读全文

posted @ 2017-07-01 15:01 正义的伙伴! 阅读(1271) 评论(0) 推荐(0) 编辑

使用nexus 搭建本地 maven 服务器
摘要:1.下载安装nexus oos https://www.sonatype.com/download-oss-sonatype ,选择2.x 版本。 2. 配置maven 3.over,请使用 阅读全文

posted @ 2017-07-01 14:59 正义的伙伴! 阅读(219) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
//增加一段JS脚本,为目录生成使用
点击右上角即可分享
微信分享提示