jeesite 我在mysqloracle 向表里加字段了一个字段,后台实体也加了属性,SET和GET方法,但是用不到这个属性 为什么?

不务正业的IT狗,喜欢读书和写作
mysql之my.cnf
mysql在安装完毕后,一般都要对my.cnf进行配置,以期mysql性能最大化。
一、关键参数
此配置是通过我们的大宗期货交易平台性能整理出来,希望你只是做一个参照。
default-character-set=utf8
= /var/lib/mysql/mysql.sock
= /var/lib/mysql/mysql.sock
character-set-server=utf8
default-storage-engine=INNODB
max_connections = 500
query_cache_size=0
query_cache_type=0
table_open_cache=2000
tmp_table_size=19M
thread_cache_size = 18
myisam_max_sort_file_size = 1G
myisam_sort_buffer_size=30M
key_buffer_size=8M
read_buffer_size = 512K
read_rnd_buffer_size = 1M
sort_buffer_size = 512k
innodb_flush_log_at_trx_commit=2
innodb_log_buffer_size=1M
innodb_buffer_pool_size=2G
innodb_buffer_pool_instances=1
innodb_log_file_size=48M
innodb_thread_concurrency=9
innodb_autoextend_increment=64
innodb_buffer_pool_instances=8
innodb_concurrency_tickets=5000
innodb_old_blocks_time=1000
innodb_open_files=300
innodb_stats_on_metadata=0
innodb_file_per_table=1
innodb_checksum_algorithm=0
flush_time=0
join_buffer_size=256K
max_connect_errors=100
max_allowed_packet = 16M
open_files_limit=4161
table_definition_cache=1400
binlog_row_event_max_size=8K
binlog-format = MIXED
innodb_lock_wait_timeout = 20
transaction-isolation = REPEATABLE-READ
binlog_cache_size = 1M
log_bin=mysql-bin
server_id = 1
[mysqldump]
max_allowed_packet = 16M
二、innodb_flush_log_at_trx_commit
Controls the balance between strict ACID compliance for commit operations, and higher performance
that is possible when commit-related I/O operations are rearranged and done in batches. You can
achieve better performance by changing the default value, but then you can lose up to a second of
transactions in a crash.
o The default value of 1 is required for full ACID compliance. With this value, the contents of the InnoDB
log buffer are written out to the log file at each transaction commit and the log file is flushed to disk.
o With a value of 0, the contents of the InnoDB log buffer are written to the log file approximately once
per second and the log file is flushed to disk. No writes from the log buffer to the log file are performed
at transaction commit. Once-per-second flushing is not 100% guaranteed to happen every second,
due to process scheduling issues. Because the flush to disk operation only occurs approximately once
per second, you can lose up to a second of transactions with any mysqld process crash.
o With a value of 2, the contents of the InnoDB log buffer are written to the log file after each transaction
commit and the log file is flushed to disk approximately once per second. Once-per-second flushing
is not 100% guaranteed to happen every second, due to process scheduling issues. Because the
flush to disk operation only occurs approximately once per second.
innodb_flush_log_at_trx_commit=1,innodb的缓存会在事务提交或者每秒钟时都会进行磁盘的刷新操作,默认值。
innodb_flush_log_at_trx_commit=2,innodb缓存会在提交事务时写入到事务日志但不会刷新磁盘,然后在每秒钟时进行磁盘刷新操作。
innodb_flush_log_at_trx_commit=0,每秒钟时缓存写入日志,同时刷新磁盘。
根据我们的性能测试,发现在innodb_flush_log_at_trx_commit=2,数据的读写速度和1的时候有明显的提升。
三、innodb_buffer_pool_size、innodb_buffer_pool_instances
这两个参数,你必须得看看这个
四、binlog-format = MIXED
该种二进制日志模式是statement和row模式的结合体,不过需要注意的是mysql 5.7中的默认格式是STATEMENT,这会影响到服务端代码如java对事务的处理,非常关键,没有调试好的话,会导致事务不回滚。
In MySQL 5.7, the default format is STATEMENT.
You must have the SUPER privilege to set either the global or session binlog_format value.
The rules governing when changes to this variable take effect and how long the effect lasts are the same as for other MySQL server system variables. See Section 13.7.4, “SET Syntax”, for more information.
When MIXED is specified, statement-based replication is used, except for cases where only row-based replication is guaranteed to lead to proper results. For example, this happens when statements contain user-defined functions (UDF) or the UUID() function. An exception to this rule is that MIXED always uses statement-based replication for stored functions and triggers.
事务回滚的时间间隔,定为20秒,是我们项目认为比较合理的值,另外可参见。
六、transaction-isolation = REPEATABLE-READ
事务的隔离级别,对多事务的读写也有着关键的作用,可参见。
笑对现实的无奈,不能后退的时候,不再傍徨的时候,永远向前 路一直都在──陈奕迅《路一直都在》
本文出自:【】
没有更多推荐了,
加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!您当前的位置:&
将activiti的databaseSchemaUpdate设置为drop-create抛出DbSqlSession 错误
新浪微博:文章标签 ‘jeesite’
相关技术资源和难点
网站:http://jeesite.com/
github:https://github.com/thinkgem/jeesite
一些特殊需求
为了实现报表嵌入,然后再登录前和登录后都去刷了一个空白页面,页面里有一个隐藏的iframe,里边有登录另外一个网址的程序,因此实现了跨域登录。
spring mvc+mybatis多数据源的实现:
http://ctrlc.iteye.com/blog/2248428
还有就是代码包里的文件:
[caption id="attachment_2410" align="aligncenter" width="293" caption="doc"][/caption]
前端轮播的实现:
[caption id="attachment_2411" align="aligncenter" width="300" caption="lunbo"][/caption]
&!DOCTYPE html&
代码结构清晰合理,四层。代码分为三块:java代码、页面和数据库mapping的。照猫画虎很简单就可以写出一个hello world。
[caption id="attachment_2402" align="aligncenter" width="300" caption="code"][/caption]
[caption id="attachment_2403" align="aligncenter" width="198" caption="jsp"][/caption]
[caption id="attachment_2404" align="aligncenter" width="300" caption="mybatis"][/caption]
src/main/java
com.thinkgem.jeesite Jeesite平台目录
├ common 公共模块存放目录
│ ├ beanvalidator 实体Bean验证相关类
│ ├ log 日志工具相关类
│ ├ mapper 各种Object到Xml、Object到Json的映射转换类
│ ├ persis
接上回,先看jeestie的网站和文档。
网站:http://jeesite.com/
github:https://github.com/thinkgem/jeesite
谷歌一下jeesite看下是否有很多资料。
需要注意的点如下:
相关技术框架:(你熟悉的是最好的)
核心框架:Spring Framework 4.0
安全框架:Apache Shiro 1.2
视图框架:Spring MVC 4.0
服务端验证:Hibernate Validator 5.1
布局框架:SiteMesh 2.4
工作流引擎:Activiti 5.15、FoxBPM 6
任务调度:Spring Task 4.0
持久层框架:MyBatis 3.2
数据库连接池:Alibaba Druid 1.0
缓存框架:Ehcache 2.6、Redis
日志管理:SLF4J 1.7、Log4j
工具类:Apache Commons、Jackson 2.2、Xstream 1.4、Dozer 5.3、POI 3.9
最近需要新开一个项目,需要完成一个数据门户的portal,java web是几年前使用的东西,说简单呢挺简单的,但自己搭建一套还是比较耗时的,想要快速完成,把时间花在门户建设上,还是找开源的吧。比较了portal里的Liferay和一般的java web脚手架,如jeestie,觉得还是脚手架好一些。
说一下选择的标准:
1、可控性:对源代码的掌握是不是很复杂。开发框架是不是很常见,架构简单,代码易读。
2、功能性:基本功能是否都满足。用户管理、角色管理、权限控制和一般的内容发布都是必须的。
3、好界面:界面是不是很复杂,有无控件支持。对于后端人员来说,写一段div+css可能确实有点困难。
4、数据源:是否对多种数据库有支持。mysql、oracle和redi
WP Cumulus Flash tag cloud zh-cn by 幽游
111314151617
18192021222324
252627282930Maven多模块项目,适用于一些比较大的项目,通过合理的模块拆分,实现代码的复用,便于维护和管理。尤其是一些开源框架,也是采用多模块的方式,提供插件集成,...
发布于 1年前
十二月 22, :42 上午 org.apache.coyote.http11.AbstractHttp11Processor proc...
发布于 2年前
流程编辑器的doc文档能不能更新下,两年前的了,现在的流程编辑器和文档中的描述的完全不一样啊。一模瞎
发布于 2年前
@thinkgem 你好,想跟你请教个问题: Excel(Export)在get方法上加注解返回值如果是integer类型导出的值不对 BigDecima...
发布于 2年前
@thinkgem 你好,想跟你请教个问题: 项目部署到lunix上面得不到用户名显示用户名密码错误!form提交 得不到用户名!之前在Windows也遇...
发布于 2年前
请问有人在jeesite里面添加过lodop打印吗,求助
发布于 2年前
另外是同时配置2个数据源
不需要切换那种 最好只需要传参确定使用哪个db就好
发布于 2年前
jeestie为什么这么久了还不加入全文检索功能?
发布于 2年前
jeesite项目在联网的状态下可以正常运行, 在断开网络之后部署失败了, 出错日志如下, 求大神解答! Caused by: org.springfra...
发布于 2年前
关于jeesite如何将自定义对象作为系统控件的教程,比如类似于区域选择的树,如何自定义一个对象放置到代码生成器中?还有就是系统自带的左树右表的生成方式无...
发布于 2年前
@thinkgem 你好,想跟你请教个问题: 我用系统创建了一个用户,并分配了一些权限,但是登陆的时候提示错误: Error querying datab...
发布于 2年前
jeesite默认的文章模型不能满足我的需求,我需要添加若干字段,请教各位大牛思路
发布于 3年前
org.apache.http.client.ClientProtocolException: URI does not specify a valid ...
发布于 3年前
@thinkgem 你好,想跟你请教个问题:就是我们在原有的jeesite基础上增加自己的业务和一些功能,然后现在我们想用于一些商业模式,想知道用不用得到...
发布于 3年前
var gdpDate= document.getElementsByName("gdp_date");
for(var i=gdpDa...
发布于 3年前
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleExcepti...
发布于 3年前
&label class="control-label"&ID:&/label& &div class="controls"& &form:select ...
发布于 3年前
您好,请问在该框架中如何加入支付功能
发布于 3年前
jeesite如何通过webservice做登录接口,因为我一个系统登录了,会引用另一个系统的某些功能,所以打算在另一个系统中通过webservice做一...
发布于 3年前
想访问两个数据源在jeesite中,如何进行配置及其使用
发布于 3年前
jeesite 按钮权限控制是怎么控制的
发布于 3年前
前台页面通过a标签传一个链接和一个String的参数 ,后台的controller是怎么接收这个String的参数的,如果前台是一组对象,我想把所有的对象...
发布于 4年前
首先感谢框架的创作者,但是我在使用过程中遇到几个不明白的地方,参考着文档来的。但是有两个地方没找到。 1、
运行bin\resresh-db\re...
发布于 4年前

我要回帖

更多关于 oracle 向表里加字段 的文章

 

随机推荐