hibernate_part2_4

<!DOCTYPE hibernate-configuration PUBLIC
	"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
	"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>
<session-factory>
	<!-- 数据库连接URL -->
	<property name="connection.url">
		jdbc:mysql://localhost/testHibernate
	</property>
	
	<!-- 数据库连接驱动 -->
	<property name="connection.driver_class">
		com.mysql.jdbc.Driver
	</property>
	
	<!-- 数据库用户名 -->
	<property name="connection.username">root</property>
	
	<!-- 数据库用户密码 -->
	<property name="connection.password">password</property>
	
	<!-- 数据库方言 -->
	<property name="dialect">
		org.hibernate.dialect.MySQLDialect
	</property>
	
	<!-- 自动创建表 -->
	<property name="hbm2ddl.auto">
		create
	</property>
	
	<!-- 自动创建表 -->
	<property name="show_sql">
		true
	</property>
	
	<!-- 指定映射文件 -->
	<mapping resource="cn/itcast/hibernate/domain/User.hbm.xml"/>
	
	<mapping resource="cn/itcast/hibernate/domain/Department.hbm.xml"/>
	<mapping resource="cn/itcast/hibernate/domain/Employee.hbm.xml"/>
	
	<mapping resource="cn/itcast/hibernate/domain/Student.hbm.xml"/>
	
	<mapping resource="cn/itcast/hibernate/domain/Person.hbm.xml"/>
	<mapping resource="cn/itcast/hibernate/domain/IdCard.hbm.xml"/>
	
	<mapping resource="cn/itcast/hibernate/domain/Teacher.hbm.xml"/> 
</session-factory>
</hibernate-configuration>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这是一个比较完整的 `bootargs` 参数,包含了许多不同的配置项,具体解释如下: 1. `qcom_dma_heaps.enable_bitstream_contig_heap=y`:启用 bitstream 连续堆,即将 bitstream 分配到物理连续的内存区域,以提高 DMA 性能。 2. `kpti=0`:禁用内核页表隔离(KPTI),这是一种针对 Meltdown 和 Spectre 安全漏洞的内核保护机制。 3. `ssbd=force-off`:关闭 Speculative Store Bypass Disable(SSBD)保护机制。 4. `lpm_levels.sleep_disabled=1`:禁用低功耗模式,即防止系统进入睡眠状态。 5. `video=vfb:640x400,bpp=32,memsize=3072000`:配置虚拟帧缓冲(Virtual Frame Buffer),分辨率为 640x400,像素深度为 32 位,内存大小为 3072000 字节。 6. `msm_rtb.filter=0x237`:配置 MSM Ready To Boot(RTB)过滤器,0x237 是一个十六进制值,表示仅允许特定类型的 RTB 消息通过。 7. `service_locator.enable=1`:启用服务定位器,这是一个用于在系统中查找和注册服务的机制。 8. `swiotlb=4096`:配置 I/O 内存缓冲区的大小为 4096 字节。 9. `firmware_class.path=/vendor/firmware_mnt/image`:设置固件加载路径为 `/vendor/firmware_mnt/image`。 10. `loop.max_part=7`:设置 loop 设备支持的最大分区数为 7。 11. `kvm-arm.mode=nvhe`:配置 KVM(Kernel Virtual Machine)模式为 Non-Virtual Host Extension(NVHE)模式。 12. `hibernate=nocompress`:在系统挂起到磁盘时,禁用压缩方式。 13. `noswap_randomize`:禁用交换空间地址的随机化。 14. `pcie_ports=compat`:配置 PCIe 端口的兼容性。 15. `console=ttyMSM0,115200n8`:设置控制台输出为 ttyMSM0 设备,波特率为 115200,数据位为 8 位,无校验位。 16. `earlycon=qcom_geni,0xa90000`:设置 earlycon(Early Console)输出为 qcom_geni 设备,地址为 0xa90000。 17. `qcom_geni_serial.con_enabled=1`:启用 qcom_geni 设备的控制台输出功能。 18. `slub_debug=FZPU`:启用 SLUB 内存分配器的调试功能,使用 FZPU 参数来指定调试级别。 19. `bootconfig`:启用 Bootconfig 功能,该功能可以在启动时加载一个配置文件,用于配置内核参数和启动脚本。 20. `buildvariant=userdebug`:设置编译类型为 userdebug,这是 Android 系统中的一种编译类型。 21. `rootwait`:等待根文件系统挂载完成后再启动系统。 22. `ro`:以只读模式挂载根文件系统。 23. `init=/init`:指定 init 程序的路径为 /init。 24. `resume=/dev/sda13`:配置系统从 /dev/sda13 设备中恢复挂起状态。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值