- java web mvc-04-Apache Wicket
老马啸西风
mvcjava前端mvc
拓展阅读SpringWebMVC-00-重学mvcmvc-01-Model-View-Controller概览webmvc-03-JFinalwebmvc-04-ApacheWicketwebmvc-05-JSFJavaServerFaceswebmvc-06-playframeworkintrowebmvc-07-Vaadinwebmvc-08-Grails开源Thejdbcpoolforjav
- java web mvc-02-struts2
老马啸西风
mvcjava前端mvc
拓展阅读SpringWebMVC-00-重学mvcmvc-01-Model-View-Controller概览webmvc-03-JFinalwebmvc-04-ApacheWicketwebmvc-05-JSFJavaServerFaceswebmvc-06-playframeworkintrowebmvc-07-Vaadinwebmvc-08-GrailsStruts2ApacheStruts
- java web mvc-03-JFinal
老马啸西风
mvcjava前端mvc
拓展阅读SpringWebMVC-00-重学mvcmvc-01-Model-View-Controller概览webmvc-03-JFinalwebmvc-04-ApacheWicketwebmvc-05-JSFJavaServerFaceswebmvc-06-playframeworkintrowebmvc-07-Vaadinwebmvc-08-GrailsJFinalJFinal是基于Java
- java web mvc-07-Vaadin 入门介绍
老马啸西风
mvcjava前端mvc
拓展阅读SpringWebMVC-00-重学mvcmvc-01-Model-View-Controller概览webmvc-03-JFinalwebmvc-04-ApacheWicketwebmvc-05-JSFJavaServerFaceswebmvc-06-playframeworkintrowebmvc-07-Vaadinwebmvc-08-Grails开源Thejdbcpoolforjav
- java web mvc-08-Grails 入门介绍
老马啸西风
mvcjava前端mvc
拓展阅读SpringWebMVC-00-重学mvcmvc-01-Model-View-Controller概览webmvc-03-JFinalwebmvc-04-ApacheWicketwebmvc-05-JSFJavaServerFaceswebmvc-06-playframeworkintrowebmvc-07-Vaadinwebmvc-08-Grails开源Thejdbcpoolforjav
- java web mvc-06-play framework intro
老马啸西风
mvcjava前端mvc
拓展阅读SpringWebMVC-00-重学mvcmvc-01-Model-View-Controller概览webmvc-03-JFinalwebmvc-04-ApacheWicketwebmvc-05-JSFJavaServerFaceswebmvc-06-playframeworkintrowebmvc-07-Vaadinwebmvc-08-Grails开源Thejdbcpoolforjav
- java web mvc-05-JSF JavaServer Faces 入门例子
老马啸西风
mvcjava前端mvc
拓展阅读SpringWebMVC-00-重学mvcmvc-01-Model-View-Controller概览webmvc-03-JFinalwebmvc-04-ApacheWicketwebmvc-05-JSFJavaServerFaceswebmvc-06-playframeworkintrowebmvc-07-Vaadinwebmvc-08-Grails开源Thejdbcpoolforjav
- 简洁、高效、灵活:探索 Spring 同级别的编程框架
索码理
五谷杂粮springjava后端
文章目录GrailsMicronautVert.xQuarkusPlayFrameworkDropwizard前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家。点击跳转到网站。作为一个Java开发者,Spring框架应该基本上都用过的,由于Spring框架太过于强大,导致我们可能只知道Spring框架,但其实还有很多优秀的框架可以供我们使用,本文将介绍6个和spri
- Grails Spring security rest 实践与困惑--答案
杯子里希望的石头
出错的直接原因是数据库连接中断。根本原因是我是在开发环境中测试的,开发环境中Grails没有配置线程池。在开发环境中增加线程池的设置后,问题解决了。
- Grails 4.x 使用MongoDB
杯子里希望的石头
compile'org.grails.plugins:mongodb:7.0.0'注意,增加这一条即可。关键是版本。
- 【Java】Groovy 语言应用场景以及积累
darlingmz
java开发语言gr
Groovy是一种多用途的编程语言,它可以用于多种开发场景。以下是Groovy可以用于的一些开发领域和示例:脚本编写:Groovy的简洁语法和强大的动态特性使其成为编写脚本的理想选择。defmessage="Hello,World!"printlnmessageWeb开发:Groovy可以用于编写Web应用程序,通常与Grails框架结合使用。Grails是一个基于Groovy的Web框架,提供了
- Grails GORM查询
hxpjava1
GORM查询GORM提供了从动态查询器到criteria到Hibernate面向对象查询语言HQL的一系列查询方式.Groovy通过GPath操纵集合的能力,和GORM的像sort,findAll等方法结合起来,形成了一个强大的组合.但是,让我们从基础开始吧.获取实例列表如果你简单的需要获得给定类的所有实例,你可以使用list方法:defbooks=Book.list()list方法支持分页参数:
- 从TCP三次握手说起——浅析TCP协议中的疑难杂症
yesIcando-bupt
java
PeterWang_bupt贡献值:2等級:L10发布0评论1顶发布链接发布图文全部主题我关注的主题GEEKNEWSRustSwift全栈工程师/homePrestoDB人工智能前端Spark云计算潜水猿Container物联网(IoT)SDN安全技术翻译VR/ARAndroid开发者iOS开发NodejsPython开发者AngularJSGrails/GroovyGit教程GoCSDN前端CS
- [Review]To be coder(2011.08.01~2014.01.11-Grails-ing)
请叫我汪海
个人主页:http://callmewhy.com/其实编程是一件非常有意思的事情,像造物主可以创造万物一样,每一个程序员都可以创造一片属于自己的世界。这就是我喜欢编程的原因,很简单,自由。以下内容回记录汪海的编程生活,因为比较懒的原因,所以写的比较简单,其中坎坷曲折,一言难尽。再回头看以前写的代码,敲的程序,却也别有一番滋味。个人兴趣飘忽无常,所以有些都没有深入学习,以后有时间再慢慢补上吧。JA
- grails限制方法的提交方式
逸舒紫忆
grails限制方法的提交方式staticallowedMethods=[startCharging:"POST",stopCharging:"POST",billingModel:"POST",withhold:"POST"]startCharging->方法名放置在controller的最上方即可
- 如何打印 Grails GORM 的SQL语句执行情况,以及SQL语句参数值?
微风好飞行
GrailsGORMgrailsGORM日志debug
当我们需要查看GORM的DDL或者查询SQL语句是否被GORM正确执行时,我们可以这样做。一、打开logback中相关的logger设置BasicBinderlogger的级别为TRACE会打印hibernate的SQL参数值;设置SQLlogger会打印SQL语句,但这个做法和application.yml中的配置重复了,因此可以注释掉。//logger("org.hibernate.SQL",
- grails框架配置webService
在路上的小海贼
近期在项目中使用到了grails的webservice发布,总结如下:一、axis2的配置1、安装axis2插件命令:install-pluginaxis22、服务类的使用新建一个service,然后在服务类中加入下面一句就ok了staticexpose=['axis2']3、测试一下输入地址:http://localhost:8080/gidms_sd/axis2-web如出现axis2的欢迎界
- Grails3.0.x-3.1.x由hibernate4升级至hibernate5
静静黑夜
build.gradle中buildscript下面的hibernate4更换为://classpath"org.grails.plugins:hibernate4:5.0.5"classpath"org.grails.plugins:hibernate5:5.0.5"依赖更换://compile"org.grails.plugins:hibernate4"//compile"org.hibern
- Grails国际化实例
MrJonny
Grails实现国际化(中英文切换)在grails-app/i18n分别配置英文(messages.properties),中文:(messages_zh_CN.properties)英文配置messages.propertiesuser.username=Usernameuser.password=Passwordusername.tip=Enterusernamepassword.tip=En
- grails gsp页面显示数据库中的html代码乱码/自动编码解决方案
Ajian
数据库htmloracle
发布于2014-12-2511:57:23数据库中存储的是一段html代码,在grails2.3下在页面中显示总是显示一段被转义后的html代码,解决方案:1:在grails-app/utils/下创建HTMLCodec.groovy,在其中的decode方法中进行反转:staticdecode={theTarget->org.springframework.web.util.HtmlUtils.
- Grails集成Quartz插件实现定时任务(Job)
MrJonny
build.gradle依赖://定时器compile'org.grails.plugins:quartz:2.0.0.M4'创建一个job,执行命令:create-jobcom.test.Test修改TestJob:packagecom.testclassTestJob{statictriggers={}defexecute(context){//executejobprintln"执行..."
- 别再用那些已经淘汰的技术了!2020 年 9 大顶级 Java 框架出炉!!
javap
目录顶级Java框架#1:Spring顶级Java框架#2:Hibernate顶级Java框架#3:Struts顶级Java框架#4:Play顶级Java框架#5:GooglewebToolkit顶级Java框架#6:Grails顶级Java框架#7:Blade顶级Java框架#8:JavaServerFaces顶级Java框架#9:Vaadin小结正文诞生于1995年的Java,目前已在134,
- Grails3文件上传到腾讯COS(OSS)
MrJonny
在build.gradle中引入依赖//腾讯云osscompile('com.qcloud:cos_api:5.4.9'){excludegroup:'org.slf4j',module:'slf4j-log4j12'}在grails-app/conf下创建一个application-oss.yml文件oss:secretId:AKI**************************H7Tise
- Java urlconnect 实现https接口调用
山药当归枸杞GO
javahttpslog4j
packagecom.hnkylin.mc.utils;importorg.apache.log4j.Logger;importorg.codehaus.groovy.grails.io.support.IOUtils;importorg.codehaus.groovy.grails.web.json.JSONObject;importjavax.net.ssl.*;importjava.io.*
- cas客户端无法退出问题解决
Toplhyi
记录grails3项目中使用springsecuritycas插件遇到的单点登出问题。依据文档进行cas相关配置。测试发现cas客户端退出后,其他cas客户端依然是登录状态,本文记录解决这个问题的过程。首先想到的是,客户端1退出的时候是否没有通知到cas服务端。验证:在自定义的TGTDestoryEventListener类中加上断点。结果:进入断点,cas接收到客户端的退出申请,进行了销票操作。
- 上传本地jar包到远程maven仓库
子丿龙
1、先设置本地maven配置,对应到远程仓库地址远程releases仓库远程仓库用户名远程仓库密码664775远程snapshots仓库远程仓库用户名远程仓库密码664775远程仓库远程仓库远程仓库镜像地址*org.grails2、以华为人脸识别核心包为例:mvndeploy:deploy-file-DgroupId=com.huawei.apigateway-DartifactId=java-s
- 带有Linux(以及Windows 10上的Ubuntu)的Azure App Service(网站)上的Ruby on Rails
cunfuteng7334
linuxdockerjavaubuntupython
RunningRubyonRailsonWindowshashistoricallysucked.MostoftheRuby/RailsfolksareMacandLinuxusersandhaven'tfocusedongettingRailstobeusablefordailydevelopmentonWindows.Therehavebeensomeheroiceffortsbyanumbe
- Grails SpringBoot国际化不生效
一个不安分的程序员
Java日志springbootjavatomcatgrails国际化
问题描述:grails项目使用了国际化,按照官方文档的说法:会根据用户浏览器访问时使用的Accept-Language头自动选择合适的语言。但无论浏览器了配置什么语言甚至配置了Tomcat启动参数-Duser.language=xxx-Duser.region=xxx页面显示依旧是英文。只能通过在url上添加lang=xxx参数转换不同的语言。网上搜索了半天找到了相同的问题却没有合适的答案。难道官
- grails3使用aop进行切面编程
Toplhyi
grails3使用aop进行切面编程build.gradle中加入依赖compile"org.springframework.boot:spring-boot-starter-aop"在resources.groovy中声明spring命名空间beans{xmlnsaop:"http://www.springframework.org/schema/aop"}注入bean,进行配置beans{xm
- javaer敏捷之路:使用grails 1.1.1有感
iteye_6308
javaGrails敏捷开发GroovyLinuxTomcat
ScottDavis:BritishSkyBroadcastingGroup最近将它的Web站点迁移到了Grails。他们现在每月的点击量达到1.1亿次。LinkedIn.com在其站点的某些商业部分使用Grails。TropicanaJuice在英国有一个Web站点,该站点几年来一直在Grails上运行。Grails.org本身就是用Grails编写的,每月支持70,000多次下载。美国时间20
- 辗转相处求最大公约数
沐刃青蛟
C++漏洞
无言面对”江东父老“了,接触编程一年了,今天发现还不会辗转相除法求最大公约数。惭愧惭愧!
为此,总结一下以方便日后忘了好查找。
1.输入要比较的两个数a,b
忽略:2.比较大小(因为后面要的是大的数对小的数做%操作)
3.辗转相除(用循环不停的取余,如a%b,直至b=0)
4.最后的a为两数的最大公约数
&
- F5负载均衡会话保持技术及原理技术白皮书
bijian1013
F5负载均衡
一.什么是会话保持? 在大多数电子商务的应用系统或者需要进行用户身份认证的在线系统中,一个客户与服务器经常经过好几次的交互过程才能完成一笔交易或者是一个请求的完成。由于这几次交互过程是密切相关的,服务器在进行这些交互过程的某一个交互步骤时,往往需要了解上一次交互过程的处理结果,或者上几步的交互过程结果,服务器进行下
- Object.equals方法:重载还是覆盖
Cwind
javagenericsoverrideoverload
本文译自StackOverflow上对此问题的讨论。
原问题链接
在阅读Joshua Bloch的《Effective Java(第二版)》第8条“覆盖equals时请遵守通用约定”时对如下论述有疑问:
“不要将equals声明中的Object对象替换为其他的类型。程序员编写出下面这样的equals方法并不鲜见,这会使程序员花上数个小时都搞不清它为什么不能正常工作:”
pu
- 初始线程
15700786134
暑假学习的第一课是讲线程,任务是是界面上的一条线运动起来。
既然是在界面上,那必定得先有一个界面,所以第一步就是,自己的类继承JAVA中的JFrame,在新建的类中写一个界面,代码如下:
public class ShapeFr
- Linux的tcpdump
被触发
tcpdump
用简单的话来定义tcpdump,就是:dump the traffic on a network,根据使用者的定义对网络上的数据包进行截获的包分析工具。 tcpdump可以将网络中传送的数据包的“头”完全截获下来提供分析。它支 持针对网络层、协议、主机、网络或端口的过滤,并提供and、or、not等逻辑语句来帮助你去掉无用的信息。
实用命令实例
默认启动
tcpdump
普通情况下,直
- 安卓程序listview优化后还是卡顿
肆无忌惮_
ListView
最近用eclipse开发一个安卓app,listview使用baseadapter,里面有一个ImageView和两个TextView。使用了Holder内部类进行优化了还是很卡顿。后来发现是图片资源的问题。把一张分辨率高的图片放在了drawable-mdpi文件夹下,当我在每个item中显示,他都要进行缩放,导致很卡顿。解决办法是把这个高分辨率图片放到drawable-xxhdpi下。
&nb
- 扩展easyUI tab控件,添加加载遮罩效果
知了ing
jquery
(function () {
$.extend($.fn.tabs.methods, {
//显示遮罩
loading: function (jq, msg) {
return jq.each(function () {
var panel = $(this).tabs(&
- gradle上传jar到nexus
矮蛋蛋
gradle
原文地址:
https://docs.gradle.org/current/userguide/maven_plugin.html
configurations {
deployerJars
}
dependencies {
deployerJars "org.apache.maven.wagon
- 千万条数据外网导入数据库的解决方案。
alleni123
sqlmysql
从某网上爬了数千万的数据,存在文本中。
然后要导入mysql数据库。
悲剧的是数据库和我存数据的服务器不在一个内网里面。。
ping了一下, 19ms的延迟。
于是下面的代码是没用的。
ps = con.prepareStatement(sql);
ps.setString(1, info.getYear())............;
ps.exec
- JAVA IO InputStreamReader和OutputStreamReader
百合不是茶
JAVA.io操作 字符流
这是第三篇关于java.io的文章了,从开始对io的不了解-->熟悉--->模糊,是这几天来对文件操作中最大的感受,本来自己认为的熟悉了的,刚刚在回想起前面学的好像又不是很清晰了,模糊对我现在或许是最好的鼓励 我会更加的去学 加油!:
JAVA的API提供了另外一种数据保存途径,使用字符流来保存的,字符流只能保存字符形式的流
字节流和字符的难点:a,怎么将读到的数据
- MO、MT解读
bijian1013
GSM
MO= Mobile originate,上行,即用户上发给SP的信息。MT= Mobile Terminate,下行,即SP端下发给用户的信息;
上行:mo提交短信到短信中心下行:mt短信中心向特定的用户转发短信,你的短信是这样的,你所提交的短信,投递的地址是短信中心。短信中心收到你的短信后,存储转发,转发的时候就会根据你填写的接收方号码寻找路由,下发。在彩信领域是一样的道理。下行业务:由SP
- 五个JavaScript基础问题
bijian1013
JavaScriptcallapplythisHoisting
下面是五个关于前端相关的基础问题,但却很能体现JavaScript的基本功底。
问题1:Scope作用范围
考虑下面的代码:
(function() {
var a = b = 5;
})();
console.log(b);
什么会被打印在控制台上?
回答:
上面的代码会打印 5。
&nbs
- 【Thrift二】Thrift Hello World
bit1129
Hello world
本篇,不考虑细节问题和为什么,先照葫芦画瓢写一个Thrift版本的Hello World,了解Thrift RPC服务开发的基本流程
1. 在Intellij中创建一个Maven模块,加入对Thrift的依赖,同时还要加上slf4j依赖,如果不加slf4j依赖,在后面启动Thrift Server时会报错
<dependency>
- 【Avro一】Avro入门
bit1129
入门
本文的目的主要是总结下基于Avro Schema代码生成,然后进行序列化和反序列化开发的基本流程。需要指出的是,Avro并不要求一定得根据Schema文件生成代码,这对于动态类型语言很有用。
1. 添加Maven依赖
<?xml version="1.0" encoding="UTF-8"?>
<proj
- 安装nginx+ngx_lua支持WAF防护功能
ronin47
需要的软件:LuaJIT-2.0.0.tar.gz nginx-1.4.4.tar.gz &nb
- java-5.查找最小的K个元素-使用最大堆
bylijinnan
java
import java.util.Arrays;
import java.util.Random;
public class MinKElement {
/**
* 5.最小的K个元素
* I would like to use MaxHeap.
* using QuickSort is also OK
*/
public static void
- TCP的TIME-WAIT
bylijinnan
socket
原文连接:
http://vincent.bernat.im/en/blog/2014-tcp-time-wait-state-linux.html
以下为对原文的阅读笔记
说明:
主动关闭的一方称为local end,被动关闭的一方称为remote end
本地IP、本地端口、远端IP、远端端口这一“四元组”称为quadruplet,也称为socket
1、TIME_WA
- jquery ajax 序列化表单
coder_xpf
Jquery ajax 序列化
checkbox 如果不设定值,默认选中值为on;设定值之后,选中则为设定的值
<input type="checkbox" name="favor" id="favor" checked="checked"/>
$("#favor&quo
- Apache集群乱码和最高并发控制
cuisuqiang
apachetomcat并发集群乱码
都知道如果使用Http访问,那么在Connector中增加URIEncoding即可,其实使用AJP时也一样,增加useBodyEncodingForURI和URIEncoding即可。
最大连接数也是一样的,增加maxThreads属性即可,如下,配置如下:
<Connector maxThreads="300" port="8019" prot
- websocket
dalan_123
websocket
一、低延迟的客户端-服务器 和 服务器-客户端的连接
很多时候所谓的http的请求、响应的模式,都是客户端加载一个网页,直到用户在进行下一次点击的时候,什么都不会发生。并且所有的http的通信都是客户端控制的,这时候就需要用户的互动或定期轮训的,以便从服务器端加载新的数据。
通常采用的技术比如推送和comet(使用http长连接、无需安装浏览器安装插件的两种方式:基于ajax的长
- 菜鸟分析网络执法官
dcj3sjt126com
网络
最近在论坛上看到很多贴子在讨论网络执法官的问题。菜鸟我正好知道这回事情.人道"人之患好为人师" 手里忍不住,就写点东西吧. 我也很忙.又没有MM,又没有MONEY....晕倒有点跑题.
OK,闲话少说,切如正题. 要了解网络执法官的原理. 就要先了解局域网的通信的原理.
前面我们看到了.在以太网上传输的都是具有以太网头的数据包. 
- Android相对布局属性全集
dcj3sjt126com
android
RelativeLayout布局android:layout_marginTop="25dip" //顶部距离android:gravity="left" //空间布局位置android:layout_marginLeft="15dip //距离左边距
// 相对于给定ID控件android:layout_above 将该控件的底部置于给定ID的
- Tomcat内存设置详解
eksliang
jvmtomcattomcat内存设置
Java内存溢出详解
一、常见的Java内存溢出有以下三种:
1. java.lang.OutOfMemoryError: Java heap space ----JVM Heap(堆)溢出JVM在启动的时候会自动设置JVM Heap的值,其初始空间(即-Xms)是物理内存的1/64,最大空间(-Xmx)不可超过物理内存。
可以利用JVM提
- Java6 JVM参数选项
greatwqs
javaHotSpotjvmjvm参数JVM Options
Java 6 JVM参数选项大全(中文版)
作者:Ken Wu
Email:
[email protected]
转载本文档请注明原文链接 http://kenwublog.com/docs/java6-jvm-options-chinese-edition.htm!
本文是基于最新的SUN官方文档Java SE 6 Hotspot VM Opt
- weblogic创建JMC
i5land
weblogicjms
进入 weblogic控制太
1.创建持久化存储
--Services--Persistant Stores--new--Create FileStores--name随便起--target默认--Directory写入在本机建立的文件夹的路径--ok
2.创建JMS服务器
--Services--Messaging--JMS Servers--new--name随便起--Pers
- 基于 DHT 网络的磁力链接和BT种子的搜索引擎架构
justjavac
DHT
上周开发了一个磁力链接和 BT 种子的搜索引擎 {Magnet & Torrent},本文简单介绍一下主要的系统功能和用到的技术。
系统包括几个独立的部分:
使用 Python 的 Scrapy 框架开发的网络爬虫,用来爬取磁力链接和种子;
使用 PHP CI 框架开发的简易网站;
搜索引擎目前直接使用的 MySQL,将来可以考虑使
- sql添加、删除表中的列
macroli
sql
添加没有默认值:alter table Test add BazaarType char(1)
有默认值的添加列:alter table Test add BazaarType char(1) default(0)
删除没有默认值的列:alter table Test drop COLUMN BazaarType
删除有默认值的列:先删除约束(默认值)alter table Test DRO
- PHP中二维数组的排序方法
abc123456789cba
排序二维数组PHP
<?php/*** @package BugFree* @version $Id: FunctionsMain.inc.php,v 1.32 2005/09/24 11:38:37 wwccss Exp $*** Sort an two-dimension array by some level
- hive优化之------控制hive任务中的map数和reduce数
superlxw1234
hivehive优化
一、 控制hive任务中的map数: 1. 通常情况下,作业会通过input的目录产生一个或者多个map任务。 主要的决定因素有: input的文件总个数,input的文件大小,集群设置的文件块大小(目前为128M, 可在hive中通过set dfs.block.size;命令查看到,该参数不能自定义修改);2. 
- Spring Boot 1.2.4 发布
wiselyman
spring boot
Spring Boot 1.2.4已于6.4日发布,repo.spring.io and Maven Central可以下载(推荐使用maven或者gradle构建下载)。
这是一个维护版本,包含了一些修复small number of fixes,建议所有的用户升级。
Spring Boot 1.3的第一个里程碑版本将在几天后发布,包含许多