- 解决BERT模型bert-base-chinese报错(无法自动联网下载)
搬砖修狗
bert人工智能深度学习python
一、下载问题hugging-face是访问BERT模型的最初网站,但是目前hugging-face在中国多地不可达,在代码中涉及到该网站的模型都会报错,本文我们就以bert-base-chinese报错为例,提供一个下载到本地的方法来解决问题。二、网站google-bert(BERTcommunity)Thisorganizationismaintainedbythetransformerstea
- 洛谷水题 记录
木木ainiks
算法c++数据结构
P1093[NOIP2007普及组]奖学金sort排序即可注意cmp的写法#include#includeusingnamespacestd;structnode{intid;intchinese;intmath;intenglish;intcount;}a[305];intcmp(node&a,node&b){if(a.count!=b.count){returna.count>b.count;
- vue2 el-table指定某些数据不参与排序
前端~初学者
Vue2ElementUIvue.jsjavascriptecmascript
vue2el-table指定某些数据不参与排序1、需求描述2、配置属性方法3、详细代码如下1、需求描述最后一行总计不参与排序2、配置属性方法el-table需要配置@sort-change="soltHandle"方法el-table-column需要配置sortable="custom"属性3、详细代码如下{{getChineseName(row.province).value}}结算单meth
- Jmeter测试本地web应用
会飞的猫丶。
测试
一、Jmeter下载及安装官网:http://jmeter.apache.org/下载:下载源码:解压到相关文件夹:打开bin里面的jmeter.bat就可以使用了二、看不懂英文的可以把语言切换为中文:选择options--->chooselanguage--->chinese三、新建线程组1)线程数:指的是用户的请求数,默认的输入是“1”,如果想模拟100个请求,则此处输入100。2)Ramp-
- mysql阿拉伯数字转换中文数字函数
liu_qixiang
mysqlandroid数据库
函数如下1.中间一部分代码可以提取出来作为公共方法,我这里并没有提取,因为我是在代码中动态添加的2.样式目前只做了:123转为一百二十三这类的dropfunctionifEXISTSzz_convert_number_chinese;createFUNCTIONzz_convert_number_chinese(numStrVARCHAR(100),zhfsint,zhysint)RETURNSV
- 解决Can‘t load tokenizer for ‘bert-base-chinese‘.问题
CSDNhdlg
NLPbert人工智能深度学习自然语言处理
报错提示:OSError:Can'tloadtokenizerfor'bert-base-chinese'.Ifyouweretryingtoloaditfrom'https://huggingface.co/models',makesureyoudon'thavealocaldirectorywiththesamename.Otherwise,makesure'bert-base-chinese
- 推荐项目:VITS2 Chinese - 轻松转化你的中文语音至文本
傅尉艺Maggie
推荐项目:VITS2Chinese-轻松转化你的中文语音至文本VITS2-ChineseVITS2forChinesespeech|最新VITS2中文语音合成项目地址:https://gitcode.com/gh_mirrors/vi/VITS2-Chinese项目介绍VITS2Chinese是一个针对中文语音的自动转文字工具,它简化了传统语音识别的复杂流程,让用户只需上传音频文件,就能一键完成语
- 基于Llama 3搭建中文版(Llama3-Chinese-Chat)大模型对话聊天机器人
老牛同学
AI专业技术llama机器人人工智能aiOllama
前面两篇博文,我们分别在个人笔记本电脑部署了Llama38B参数大模型,并使用Ollama搭建了基于Web可视化对话聊天机器人,可以在自己电脑上愉快的与Llama大模型Web机器人对话聊天了。但在使用过程中,笔者发现Llama大模型经常出现中文问题英文回答的问题,需要使用中文回答等提示词告诉大模型用中文回答,体验还不是最好的。今天,本博文就来解决这个问题,让我们有个中文版的Llama3Web对话机
- 看这个1920年代大口吃饭的农村“干饭人”,是不是跟我们没差别!
般若心行
关注“般若心行”,看更多经典老照片20世纪20年代的摄影书有一位来自西方的一位摄影师卡特(J.C.Carter);他以社会观察家的敏锐思考,用摄影记录各色中国人的日常生活百态;最终以24幅中国人肖像照呈现出来,采用珂罗版印刷,手工贴入内页;最终出版了摄影书《FamiliarChineseFaces》《常见之华人容貌》;它们记录了各色中国人的日常生活百态,这些中国人脸上的表情,淋漓尽致地绘制了中国百
- 中文车牌识别系统 `End-to-end-for-Chinese-Plate-Recognition` 教程
皮静滢Annette
中文车牌识别系统End-to-end-for-Chinese-Plate-Recognition教程End-to-end-for-chinese-plate-recognition基于u-net,cv2以及cnn的中文车牌定位,矫正和端到端识别软件,其中unet和cv2用于车牌定位和矫正,cnn进行车牌识别,unet和cnn都是基于tensorflow的keras实现项目地址:https://gi
- 疫情下的日本居家办公
我是聪
Japan'swhite-collarwarriorsstruggletoadapttosocialdistancing第一段In57ADaChineseemperor,Guangwu,gaveanenvoyfromthekingdomofWa,asJapanwasthenknown,asolidgoldseal,withahandleintheformofacoiledserpent.Suchs
- 基于Bert-base-chinese训练多分类文本模型(代码详解)
一颗洋芋
bert分类自然语言处理
目录一、简介二、模型训练三、模型推理一、简介BERT(BidirectionalEncoderRepresentationsfromTransformers)是基于深度学习在自然语言处理(NLP)领域近几年出现的、影响深远的创新模型之一。在BERT之前,已经有许多预训练语言模型,如ELMO和GPT,它们展示了预训练模型在NLP任务中的强大性能。然而,这些模型通常基于单向的上下文信息,即只考虑文本中
- linux字体安装与卸载
郑勇锋
厦门市国土局系统打印合同备案登记证明,发现生成环境打出的字体和排错环境的字体显示不一致,我了个乖乖,最后发现是生成环境未安装相应的字体库,在此记录一下安装与卸载过程切换到root权限将SimSun-ExtB.ttf拷贝到/usr/share/fonts/chinese下没有chinese目录可以mkdir新建一个cd/usr/share/fonts/chinesesudomkfontscalesu
- phpstorm 插件等功能
胡萝卜的兔
laravelphpstormphpphpstormide
插件MaterialThemeUIUI主题插件ChinesePHPDocumentphp基本函数的中文文档PHPcomposer.jsonsupport在做php组件开发时,编辑composer.json文件时有对应的属性和值的自动完成功能BackgroundImagePlus背景图设置,安装之后,在打开View选项,就可以看到SetBackgroundImage选项了。.envfilessupp
- 乡村振兴战略下传统村落文化旅游设计 Paperback – Aug. 1 2022 Chinese edition by XU SHAO HUI (Author)
光明理论
旅游人工智能媒体生活科技产品运营内容运营
乡村振兴战略下传统村落文化旅游设计Paperback–Aug.12022ChineseeditionbyXUSHAOHUI(Author)Language:Chinese.paperback.PubDate:2022-08-01.publisher:ChinaBuildingIndustryPress.description:Paperback.PubDate:2022-08-01Pages:20
- python打包中文报错,解决python3+Gooey使用pyinstaller打包时无法输出中文的问题
wesinnn
python打包中文报错
问题出处代码如下:#-*-coding:utf-8-*-fromgooeyimportGooey,GooeyParserdefrun(keywords):print(keywords)@Gooey(richtext_controls=True,#打开终端对颜色支持language='chinese',header_show_title=False,program_name="test",#程序名称
- LLM-项目详解(一):Chinese-LLaMA-Alpaca【transformers/models/llama/modeling_llama.py文件】
u013250861
#LLM/经典模型llama
site-packages/transformers/models/llama/modeling_llama.py#coding=utf-8#Copyright2022EleutherAIandtheHuggingFaceInc.team.Allrightsreserved.##ThiscodeisbasedonEleutherAI'sGPT-NeoXlibraryandtheGPT-NeoX#a
- vscode 实用插件
lt要努力
其他vscode前端vscode插件vscode实用插件
CodeGeeXAI插件,有点牛逼Chinese(Simplified)LanguagePackforVisualStudioCode设置中文显示openinbrowser从浏览器中查看html文件,使用系统的当前默认浏览器OneDarkPro设置vscode的颜色,这个颜色比默认的黑色更淡,对眼睛没有那么的刺眼AutoCloseTag自动补全html标签AutoImport自动导入包插件Auto
- Bert中文预训练模型(Bert-base-chinese)
好好学习Py
自然语言处理bert人工智能深度学习pytorchpython自然语言处理
介绍Bert-base-chinese模型是一个在简体和繁体中文文本上训练得到的预训练模型,具有以下特点:12个隐层输出768维张量12个自注意力头110M参数量该模型的主要作用是获取每个汉字的向量表示,后续通过微调可应用于各种简体和繁体中文任务。使用importtorchfromtransformersimportBertTokenizer,BertModel#第一步:离线下载#fromtran
- python \uxx字符串转中文
hzw0510
python进阶python前端javascript
python\uxx字符串转中文#假设我们有一个Unicode编码的字符串unicode_string="\\u4e2d\\u6587"#使用str()函数将Unicode编码转换为中文chinese_characters=str(unicode_string.encode('utf-8').decode('unicode_escape'
- VSCODE将界面设置设置成中文
可厉害的土豆
软件安装软件快捷方式配置vscodeide编辑器
1、在应用商店安装插件搜索"Chinese",点击安装如下图2、使用快捷键组合【Ctrl+Shift+p】,在搜索框中输入“configuredisplaylanguage”,点击确定,选择中文(zh-cn)
- AI-windows下使用llama.cpp部署本地Chinese-LLaMA-Alpaca-2模型
mrbone11
AI人工智能windowsllamallama2大语言模型LLM
文章目录Llamp.cpp环境配置Chinese-LLaMA-Alpaca-2模型介绍模型下载转换生成量化模型Anaconda环境安装运行Llamp.cpp环境配置
[email protected]:ggerganov/llama.cpp.gitcdllama.cppmkdirbuildcdbuildcmake..cmake--build.--configRelease生成的文件在.\b
- 精读Unit4➕视听说Unit3
延畅烨
Part11,从本单元中我学到的最重要的理念(精读和视听说分别总结)精读:ThereisthecontrastsomedrawbetweenaWesternemphasisondiscoverylearningtoencouragecreativityandthetraditionalChinesepreferenceforamoreguidedapproachtodevelopingskills
- Visual Studio Code 基本插件
先new一个对象.
vscodeidevisualstudiocode
1、名称:Chinese(Simplified)(简体中文);2、名称:AutoImport自动导包插件3、名称:Beautify格式化工具4、名称:BetterComments注释工具5、名称:ColorInfo在颜色上悬停光标,就可以预览色块中色彩模型的详细信息6、名称:CSScomb自动排序插件7、名称:ESLint能帮助我们自动整理代码格式8、名称:HTMLClassSuggestions
- 好妈妈PD实战教育S1E3
ccyz_铮荣岁月
主题:细小步骤金句:把任务细化,让孩子体验成功。早上,我边给4岁姐姐穿衣服边回顾昨晚上斑马英语的学习内容。说到ChineseSpringFestival时,她说得不清楚。我就问她:“你觉得这个词长吗?”她随口说:“不长。”“嗯,会了就不长,我们把他拆开来说,每个说5遍,然后再连起来说5遍,好不好?”(这方法平时就用,姐姐很熟练了。遇到说不好,说不顺的词就连着说5遍,化整为零,逐一击破。)“好啊”姐
- Midjourney提示词-动物系列-67
雨过朦胧影
Midjourneyai编程midjourneyai作画stablediffusionMidjourney
SupercuteanthropomorphicChineseHanfuhorse,Pixarstyle,charmingbigeyes,cutetail,superrealistic,superdetailed,luxurious,elegant,gorgeous,UnrealEngine,octanerendering,HD,8K,VRAYhyperrealisticAnthropomorph
- P1093 [NOIP2007 普及组] 奖学金(题解)
lin_shilei
题解算法c++数据结构
who:关键词intid;//定义学号intchinese;//定义语文成绩intmath;//定义数学成绩intenglish;//定义英语成绩inttotal;//定义综合成绩intn;//定义人数what:关键联系如何判断前五名?(1)总分高(2)语文成绩高(3)学号靠前例如:总分最高的两个同学的学号依次是7号,5号。这两名同学的总分都是279(总分等于输入的语文、数学、英语三科成绩之和)但
- dompdf php乱码,关于 DomPDF 导出中文乱码问题
木-Star
dompdfphp乱码
下面是我自己处理ubuntucentos输出PDF乱码整理的笔记,你可以试试,好的话给点赞wgethttps://dn-weiclicai.qbox.me/xpdf-chinese-simplified.tar.gzwgethttps://dn-weiclicai.qbox.me/font.ziptarzxvfxpdf-chinese-simplified.tar.gzunzipfont.zip#
- 艺术家赵玖的江山
太空主义
江山系列共198幅作品,又见千里江山大型油画组画。意象山水风景油画,采用当代艺术语言进行全新诠释,通过抽象表达,使画面更加充满未来感和力量感。希望观者可以敬畏生命,敬畏自然。中国当代艺术家赵玖,清华大学美术学院本科、硕士,作品被清华大学艺术博物馆收藏。新中式当代艺术绘画风格,中西结合,以一种全新的视角进行绘画创作,希望人们能更多地关注自然之美,敬畏自然,敬畏生命。Chinesecontempora
- [Python]补充程序实现以下计算小明参加语文,数学和英语考试,输入小明的3门课程考试成绩,计算并输出3门课程考试成绩的和、平均值以及最高和最低分。 如果三门课程以权重0.5,0.3和0.2计入总分
小熊吖吖
python开发语言
补充程序实现以下计算小明参加语文,数学和英语考试,输入小明的3门课程考试成绩,计算并输出3门课程考试成绩的和、平均值以及最高和最低分。如果三门课程以权重0.5,0.3和0.2计入总分,计算并输出小明的最终总评成绩。chinese,math,english=map(int,input().split(','))print('三门总分:',chinese+math+english)print('三门均
- html
周华华
html
js
1,数组的排列
var arr=[1,4,234,43,52,];
for(var x=0;x<arr.length;x++){
for(var y=x-1;y<arr.length;y++){
if(arr[x]<arr[y]){
&
- 【Struts2 四】Struts2拦截器
bit1129
struts2拦截器
Struts2框架是基于拦截器实现的,可以对某个Action进行拦截,然后某些逻辑处理,拦截器相当于AOP里面的环绕通知,即在Action方法的执行之前和之后根据需要添加相应的逻辑。事实上,即使struts.xml没有任何关于拦截器的配置,Struts2也会为我们添加一组默认的拦截器,最常见的是,请求参数自动绑定到Action对应的字段上。
Struts2中自定义拦截器的步骤是:
- make:cc 命令未找到解决方法
daizj
linux命令未知make cc
安装rz sz程序时,报下面错误:
[root@slave2 src]# make posix
cc -O -DPOSIX -DMD=2 rz.c -o rz
make: cc:命令未找到
make: *** [posix] 错误 127
系统:centos 6.6
环境:虚拟机
错误原因:系统未安装gcc,这个是由于在安
- Oracle之Job应用
周凡杨
oracle job
最近写服务,服务上线后,需要写一个定时执行的SQL脚本,清理并更新数据库表里的数据,应用到了Oracle 的 Job的相关知识。在此总结一下。
一:查看相关job信息
1、相关视图
dba_jobs
all_jobs
user_jobs
dba_jobs_running 包含正在运行
- 多线程机制
朱辉辉33
多线程
转至http://blog.csdn.net/lj70024/archive/2010/04/06/5455790.aspx
程序、进程和线程:
程序是一段静态的代码,它是应用程序执行的蓝本。进程是程序的一次动态执行过程,它对应了从代码加载、执行至执行完毕的一个完整过程,这个过程也是进程本身从产生、发展至消亡的过程。线程是比进程更小的单位,一个进程执行过程中可以产生多个线程,每个线程有自身的
- web报表工具FineReport使用中遇到的常见报错及解决办法(一)
老A不折腾
web报表finereportjava报表报表工具
FineReport使用中遇到的常见报错及解决办法(一)
这里写点抛砖引玉,希望大家能把自己整理的问题及解决方法晾出来,Mark一下,利人利己。
出现问题先搜一下文档上有没有,再看看度娘有没有,再看看论坛有没有。有报错要看日志。下面简单罗列下常见的问题,大多文档上都有提到的。
1、address pool is full:
含义:地址池满,连接数超过并发数上
- mysql rpm安装后没有my.cnf
林鹤霄
没有my.cnf
Linux下用rpm包安装的MySQL是不会安装/etc/my.cnf文件的,
至于为什么没有这个文件而MySQL却也能正常启动和作用,在这儿有两个说法,
第一种说法,my.cnf只是MySQL启动时的一个参数文件,可以没有它,这时MySQL会用内置的默认参数启动,
第二种说法,MySQL在启动时自动使用/usr/share/mysql目录下的my-medium.cnf文件,这种说法仅限于r
- Kindle Fire HDX root并安装谷歌服务框架之后仍无法登陆谷歌账号的问题
aigo
root
原文:http://kindlefireforkid.com/how-to-setup-a-google-account-on-amazon-fire-tablet/
Step 4: Run ADB command from your PC
On the PC, you need install Amazon Fire ADB driver and instal
- javascript 中var提升的典型实例
alxw4616
JavaScript
// 刚刚在书上看到的一个小问题,很有意思.大家一起思考下吧
myname = 'global';
var fn = function () {
console.log(myname); // undefined
var myname = 'local';
console.log(myname); // local
};
fn()
// 上述代码实际上等同于以下代码
m
- 定时器和获取时间的使用
百合不是茶
时间的转换定时器
定时器:定时创建任务在游戏设计的时候用的比较多
Timer();定时器
TImerTask();Timer的子类 由 Timer 安排为一次执行或重复执行的任务。
定时器类Timer在java.util包中。使用时,先实例化,然后使用实例的schedule(TimerTask task, long delay)方法,设定
- JDK1.5 Queue
bijian1013
javathreadjava多线程Queue
JDK1.5 Queue
LinkedList:
LinkedList不是同步的。如果多个线程同时访问列表,而其中至少一个线程从结构上修改了该列表,则它必须 保持外部同步。(结构修改指添加或删除一个或多个元素的任何操作;仅设置元素的值不是结构修改。)这一般通过对自然封装该列表的对象进行同步操作来完成。如果不存在这样的对象,则应该使用 Collections.synchronizedList 方
- http认证原理和https
bijian1013
httphttps
一.基础介绍
在URL前加https://前缀表明是用SSL加密的。 你的电脑与服务器之间收发的信息传输将更加安全。
Web服务器启用SSL需要获得一个服务器证书并将该证书与要使用SSL的服务器绑定。
http和https使用的是完全不同的连接方式,用的端口也不一样,前者是80,后
- 【Java范型五】范型继承
bit1129
java
定义如下一个抽象的范型类,其中定义了两个范型参数,T1,T2
package com.tom.lang.generics;
public abstract class SuperGenerics<T1, T2> {
private T1 t1;
private T2 t2;
public abstract void doIt(T
- 【Nginx六】nginx.conf常用指令(Directive)
bit1129
Directive
1. worker_processes 8;
表示Nginx将启动8个工作者进程,通过ps -ef|grep nginx,会发现有8个Nginx Worker Process在运行
nobody 53879 118449 0 Apr22 ? 00:26:15 nginx: worker process
- lua 遍历Header头部
ronin47
lua header 遍历
local headers = ngx.req.get_headers()
ngx.say("headers begin", "<br/>")
ngx.say("Host : ", he
- java-32.通过交换a,b中的元素,使[序列a元素的和]与[序列b元素的和]之间的差最小(两数组的差最小)。
bylijinnan
java
import java.util.Arrays;
public class MinSumASumB {
/**
* Q32.有两个序列a,b,大小都为n,序列元素的值任意整数,无序.
*
* 要求:通过交换a,b中的元素,使[序列a元素的和]与[序列b元素的和]之间的差最小。
* 例如:
* int[] a = {100,99,98,1,2,3
- redis
开窍的石头
redis
在redis的redis.conf配置文件中找到# requirepass foobared
把它替换成requirepass 12356789 后边的12356789就是你的密码
打开redis客户端输入config get requirepass
返回
redis 127.0.0.1:6379> config get requirepass
1) "require
- [JAVA图像与图形]现有的GPU架构支持JAVA语言吗?
comsci
java语言
无论是opengl还是cuda,都是建立在C语言体系架构基础上的,在未来,图像图形处理业务快速发展,相关领域市场不断扩大的情况下,我们JAVA语言系统怎么从这么庞大,且还在不断扩大的市场上分到一块蛋糕,是值得每个JAVAER认真思考和行动的事情
- 安装ubuntu14.04登录后花屏了怎么办
cuiyadll
ubuntu
这个情况,一般属于显卡驱动问题。
可以先尝试安装显卡的官方闭源驱动。
按键盘三个键:CTRL + ALT + F1
进入终端,输入用户名和密码登录终端:
安装amd的显卡驱动
sudo
apt-get
install
fglrx
安装nvidia显卡驱动
sudo
ap
- SSL 与 数字证书 的基本概念和工作原理
darrenzhu
加密ssl证书密钥签名
SSL 与 数字证书 的基本概念和工作原理
http://www.linuxde.net/2012/03/8301.html
SSL握手协议的目的是或最终结果是让客户端和服务器拥有一个共同的密钥,握手协议本身是基于非对称加密机制的,之后就使用共同的密钥基于对称加密机制进行信息交换。
http://www.ibm.com/developerworks/cn/webspher
- Ubuntu设置ip的步骤
dcj3sjt126com
ubuntu
在单位的一台机器完全装了Ubuntu Server,但回家只能在XP上VM一个,装的时候网卡是DHCP的,用ifconfig查了一下ip是192.168.92.128,可以ping通。
转载不是错:
Ubuntu命令行修改网络配置方法
/etc/network/interfaces打开后里面可设置DHCP或手动设置静态ip。前面auto eth0,让网卡开机自动挂载.
1. 以D
- php包管理工具推荐
dcj3sjt126com
PHPComposer
http://www.phpcomposer.com/
Composer是 PHP 用来管理依赖(dependency)关系的工具。你可以在自己的项目中声明所依赖的外部工具库(libraries),Composer 会帮你安装这些依赖的库文件。
中文文档
入门指南
下载
安装包列表
Composer 中国镜像
- Gson使用四(TypeAdapter)
eksliang
jsongsonGson自定义转换器gsonTypeAdapter
转载请出自出处:http://eksliang.iteye.com/blog/2175595 一.概述
Gson的TypeAapter可以理解成自定义序列化和返序列化 二、应用场景举例
例如我们通常去注册时(那些外国网站),会让我们输入firstName,lastName,但是转到我们都
- JQM控件之Navbar和Tabs
gundumw100
htmlxmlcss
在JQM中使用导航栏Navbar是简单的。
只需要将data-role="navbar"赋给div即可:
<div data-role="navbar">
<ul>
<li><a href="#" class="ui-btn-active&qu
- 利用归并排序算法对大文件进行排序
iwindyforest
java归并排序大文件分治法Merge sort
归并排序算法介绍,请参照Wikipeida
zh.wikipedia.org/wiki/%E5%BD%92%E5%B9%B6%E6%8E%92%E5%BA%8F
基本思想:
大文件分割成行数相等的两个子文件,递归(归并排序)两个子文件,直到递归到分割成的子文件低于限制行数
低于限制行数的子文件直接排序
两个排序好的子文件归并到父文件
直到最后所有排序好的父文件归并到输入
- iOS UIWebView URL拦截
啸笑天
UIWebView
本文译者:candeladiao,原文:URL filtering for UIWebView on the iPhone说明:译者在做app开发时,因为页面的javascript文件比较大导致加载速度很慢,所以想把javascript文件打包在app里,当UIWebView需要加载该脚本时就从app本地读取,但UIWebView并不支持加载本地资源。最后从下文中找到了解决方法,第一次翻译,难免有
- 索引的碎片整理SQL语句
macroli
sql
SET NOCOUNT ON
DECLARE @tablename VARCHAR (128)
DECLARE @execstr VARCHAR (255)
DECLARE @objectid INT
DECLARE @indexid INT
DECLARE @frag DECIMAL
DECLARE @maxfrag DECIMAL
--设置最大允许的碎片数量,超过则对索引进行碎片
- Angularjs同步操作http请求with $promise
qiaolevip
每天进步一点点学习永无止境AngularJS纵观千象
// Define a factory
app.factory('profilePromise', ['$q', 'AccountService', function($q, AccountService) {
var deferred = $q.defer();
AccountService.getProfile().then(function(res) {
- hibernate联合查询问题
sxj19881213
sqlHibernateHQL联合查询
最近在用hibernate做项目,遇到了联合查询的问题,以及联合查询中的N+1问题。
针对无外键关联的联合查询,我做了HQL和SQL的实验,希望能帮助到大家。(我使用的版本是hibernate3.3.2)
1 几个常识:
(1)hql中的几种join查询,只有在外键关联、并且作了相应配置时才能使用。
(2)hql的默认查询策略,在进行联合查询时,会产
- struts2.xml
wuai
struts
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache