- 【鸿蒙OH-v5.0源码分析之 Linux Kernel 部分】004 - Kernel 启动引导代码head.S 源码逐行分析
"小夜猫&小懒虫&小财迷"的男人
鸿蒙OH-v5.0源码分析之Uboot+Kernel部分harmonyoslinux华为
【鸿蒙OH-v5.0源码分析之LinuxKernel部分】004-Kernel启动引导代码head.S源码逐行分析系列文章汇总:《鸿蒙OH-v5.0源码分析之Uboot+Kernel部分】000-文章链接汇总》本文链接:《【鸿蒙OH-v5.0源码分析之LinuxKernel部分】004-Kernel启动引导代码head.S源码逐行分析》head.S主要工作如下:保存内核启动参数,无效化处理器缓存(
- 笔记整理—uboot番外(3)环境变量的作用
TeYiToKu
X210嵌入式学习整理笔记linux嵌入式硬件c语言
环境变量的最大一个作用就是,能够在不修改代码的情况下去影响应用的运行情况。环境变量的优先级问题:有环境变量的情况下优先使用环境变量,没有环境变量则使用代码中的值(全局变量一类的变量)。例如,machid在bdinfo中,而不再print_env中(环境变量)。但若是setmachid0x30001332就可以在环境变量中生成一个值,当校验时会对这个值进行采用。删除一个环境变量的方法:如刚刚设置了s
- 笔记整理—内核!启动!—kernel部分(2)从汇编阶段到start_kernel与内核进程
TeYiToKu
X210嵌入式学习整理笔记汇编linux嵌入式硬件c语言单片机
kernel起始与ENTRY(stext),和uboot一样,都是从汇编阶段开始的,因为对于kernel而言,还没进行栈的维护,所以无法使用c语言。_HEAD定义了后面代码属于段名为.head.text的段。内核起始部分代码被解压代码调用,前面关于uboot的文章中有提到过(eg:zImage)。uboot启动是无条件的,只要代码的位置对,上电就工作,kernel启动由bootloader进行构建
- 笔记整理—uboot启动过程(4)BL2干了什么及内存排布
TeYiToKu
X210嵌入式学习整理嵌入式硬件linuxc语言汇编
uboot的第一阶段结束于start_armboot,第二阶段的uboot代码主要负责soc外部硬件(inand、网卡、......)、uboot本身构建(uboot指令、环境变量、......)最后进入命令行,等待命令然后倒数,等待bootcmd,进入内核(uboot结束)。倒数期间通过回车打断进入如下代码,通过循环不去进入bootcmd。for(;;){main_loop();}typedef
- Uboot 网卡移植遇到的问题与解决方法
Jason416就是我
UbootubootUSB网卡
前言在上一章节中描述的两个问题,这里做下简单回顾。情况一在运行到接收以太帧的时候,出现了dataabrot异常,如下:dataabortpc:[]lr:[]relocpc:[]lr:[]sp:7ae54ce0ip:00000014fp:00000fffr10:00000fffr9:7ae54ed8r8:0000002er7:00000fffr6:7aede303r5:0000001cr4:7aed
- 六、部署与验证
机 _ 长
人工智能目标检测计算机视觉深度学习
在算法嵌入式部署的最终阶段,部署与验证是确保算法能够在目标嵌入式设备上正确运行并满足预期功能要求的关键步骤。以下是对这一环节的详细扩写:部署1.代码编译与链接将优化后的代码使用适合嵌入式设备的交叉编译器进行编译,生成目标平台的机器码。根据需要,将编译生成的多个目标文件链接成最终的可执行文件或固件。2.固件烧录将编译链接好的固件通过适当的接口(如JTAG、UART、USB等)烧录到嵌入式设备的存储介
- 一键教会OpenHarmony-4.1-Release的small系统的rootfs制作过程
wenfei11471
itopen组织1、提供OpenHarmony优雅实用的小工具2、手把手适配riscv+qemu+linux的三方库移植3、未来计划riscv+qemu+ohos的三方库移植+小程序开发4、一切拥抱开源,拥抱国产化一、rootfs制作命令small系统的rootfs制作脚本为build/ohos/packages/fs_process.py,制作的命令为build/ohos/packages/fs
- OpenHarmony开发学习资料
Mart!nHu
OpenHarmony鸿蒙鸿蒙系统
OpenHarmony开发学习资料欢迎留言分享&推荐优秀的OHOS资料/网址OpenHarmony官网OpenHarmony文档中心OpenHarmony开发者开源基础软件社区官方OpenHarmony版本计划拉瓦社区OpenHarmony论坛一、下载&编译&烧录1.1查看在线源码https://www.lengqinjie.xyz/lxr/sourcehttp://ci.openharmony.
- linux docker镜像管理基础
山客泛舟游Y
dockerlinux容器
linuxdocker镜像管理基础镜像的概念镜像可以理解为应用程序的集装箱,而docker用来装卸集装箱。docker镜像含有启动容器所需要的文件系统及其内容,因此,其用于创建并启动容器。docker镜像采用分层构建机制,最底层为bootfs,其上为rootfsbootfs:用于系统引导的文件系统,包括bootloader和kernel,容器启动完成后会被卸载以节约内存资源rootfs:位于boo
- 【零基础02】实战企业级K8S本地部署ThingsBoard专业版集群之二:戴尔R630本地服务器安装Linux Centos7.9系统
龙亘川
centoslinux运维
目录1、制作服务器启动U盘1.1、制作启动U盘准备工作1.1.1、确保制作启动U盘的Windows电脑处于联网状态1.1.2、下载Rufus 烧录软件1.1.3、下载Centos镜像文件1.1.4、准备1个8G以上的U盘1.2、使用Windows电脑制作启动U盘1.2.1、鼠标双击“rufus-3.19.exe”打开烧录软件1.2.2、弹出“当前无法访问>SmartScreen”窗口,点击“运行”
- 全志 HDMI 显示亮度低
春风从不入睡、
Linux驱动开发篇Android/Linux进阶宝典linux驱动开发车载系统
一、问题描述全志T527在适配HDMI,让HDMI作为主显示时,出现亮度太低的问题二、解决办法1、调整uboot参数,显示720P画面videvice/config/chips/t527/configs/sany_v7/uboot-board.dts在T527中有显示相关的接口,enhance该接口用于设置图像的亮度/对比度/饱和度/边缘锐度/细节增强/降噪的调节幅度。2、调整亮度在设置之前请确保
- IMX6ULL SD卡启动uboot+kernel+rootfs
xingpeng_89
IMX6ULLlinux服务器
目录1.背景说明2.SD卡启动2.1准备条件2.2对SD卡分区格式化2.3制作sd卡镜像3.效果测试1.背景说明网络上绝大数教程,教大家把uboot烧录到SD卡,然后uboot启动后,通过TFTP下载kernel和设备树,然后通过nfs挂载文件系统。很少有SD卡完整启动ubootkernel和rootfs,这里整理了一下,分享给大家。2.SD卡启动2.1准备条件①u-boot-dtb.imx②zI
- STM32要按复位键才能下载问题解决
CJH3231
软件使用stm32keilmdk单片机
拿别人的Keil工程来测试,点击下载程序显示:“notargetconnect”,检查过不是BOOT0/1的问题,最后发现按下板上的复位键时点击Keil下载程序,松开复位键就能烧录程序进去。用示波器测量ST_LINKSWD的reset引脚在点击下载时根本就没有复位低电平信号,同时也发现只有在按住板上复位键时,点击魔术棒-Debug-Setting才能检测到单片机SWDIO,否则就显示“notarg
- linux下使用fw_printenv读取、fw_setenv修改uboot环境变量
omnibots
linuxuboot工具移植linux
文章目录linux下使用fw_printenv读取、fw_setenv修改uboot环境变量编译配置fw_printenvfw_setenv配置linux下使用fw_printenv读取、fw_setenv修改uboot环境变量编译配置源码在uboot根目录tools/env下面。编译前需要配置一下分区信息。修改文件tools/env/fw_env.h单环境变量分区://单环境变量分区需要注释下面
- 03-10Linux的文件系统
圆缘1987
Linux的文件系统:根文件系统(rootfs):rootfilesystemLSB,FHS/boot:引导文件存放目录:内核文件(vmlinuz),引导加载器(bootloader,grub)都存放于此目录/bin:供所有用户使用的基本命令;不能关联至独立分区,OS启动会用到的程序/sbin:管理类的基本命令;不能关联至独立分区,OS启动会用到的程序/lib:基本共享库文件,以及内核模块文件(/
- Docker 命令大全
箭头大人
docker容器运维
Docker命令大全容器生命周期管理runstart/stop/restartkillrmpause/unpausecreateexec容器操作psinspecttopattacheventslogswaitexportportstats容器rootfs命令commitcpdiff镜像仓库loginpullpushsearch本地镜像管理imagesrmitagbuildhistorysavelo
- 联想笔记本G50-80 bios白名单修改
ColaForced
爱折腾--浪费时间专区bios
联想笔记本G50-80bios白名单修改。缘由:更换网卡为AX200,遇到bios白名单的限制,需要修改bios程序。bios型号:B0CNA0WW软件工具:UEFITOOL、UltraEdit硬件工具:土豪金CH341A+Sop8烧录夹子步骤简述:断开笔记本电源,拆掉笔记本电池,拆掉主板电池,找到主板上编号为UC3的芯片,型号为25B64FVSIG(25064FVSIG).用sop8夹子夹住芯片
- uboot 中的bootargs 如何 修改 内核的 cmdline和 linux 内核如何生成 /proc/cmdline
sunfanup
linux开发cc++linux
一、在U-Boot中,可以通过修改环境变量“bootargs”来修改内核的启动参数(cmdline)。以下是在U-Boot中修改内核的cmdline的一般步骤:进入U-Boot的命令行界面。这可以通过串口连接到设备,并在启动时按下适当的按键(如Enter键或空格键)来实现。使用“printenv”命令查看当前的环境变量。找到名为“bootargs”的变量。使用“setenv”命令修改“bootar
- 【FPGA】高云FPGA之数字钟实验->HC595驱动数码管
凉开水白菜
FPGAfpga开发高云
高云FPGA之IP核的使用1、设计定义2、设计输入2.1数码管译码显示2.274HC595驱动2.3主模块设计3、分析和综合4、功能仿真6.1hex8模块仿真6.2HC595模块5、布局布线6、时序仿真7、IO分配以及配置文件(bit流文件)的生成8、配置(烧录)FPGA9、在线调试1、设计定义通过74HC595芯片点亮8位数码管,通过计时器实现数码管计时显示软件开发环境高云V1.99版本硬件开发
- ESP32 非易失性存储器NVS,实现数据掉电存储(ESP-IDF)
牛马大师兄
ESP32系列经验教程嵌入式硬件物联网mcu单片机嵌入式实时数据库iotrisc-v
0、前言在嵌入式物联网设备中,或多或少都会涉猎到数据掉电存储的需求。例如生活中常见的智能锁,如果不能实现数据掉电存储,智能锁的数据仅仅是存储于RAM内存中的话,一但掉电,此前用户所作的修改密码操作也会失效,仅仅有一个最初烧录到程序代码中的初始密码,如果这样的产品上市,也不会有用户愉快的买单。因此数据掉电存储在嵌入式物联网开发中是非常常见的,我们日常生活的许多电子产品也都有数据掉电存储的功能。提醒:
- Linux第61步_“buildroot”构建根文件系统第3步_烧写根文件系统到EMMC中_并完善开发板配置
LaoZhangGong123
产品研发linuxSTM32MP157ubuntu经验分享烧录
烧录到EMMC测试,还需进一步测试和配置。1、删除rootfs”目录下的“rootfs.tar”压缩包打开第1个终端输入“ls回车”输入“cdlinux/回车”,切换到“linux”目录输入“ls回车”,列出“linux”目录下的文件和文件夹输入“cdnfs/回车”,切换到“nfs”目录输入“ls回车”,列出“nfs”目录下的文件和文件夹输入“cdrootfs/回车”,切换到“rootfs”目录输
- Linux第58步_备份busybox生成rootfs根文件系统
LaoZhangGong123
产品研发linux服务器经验分享根文件系统STM32MP157学习
备份busybox生成rootfs根文件系统打开终端输入“ls回车”输入“cdlinux/回车”输入“ls回车”,产看“linux”目录下的文件和文件夹输入“cdnfs/回车”,切换到“nfs”目录输入“ls回车”,产看“nfs”目录下的文件和文件夹输入“sudotar-vcjfrootfs-busybox.tar.bz2rootfs/回车”,将rootfs目录下的文件和文件夹打包到“rootfs
- STM32HAL库开发大疆A板WS2812B彩灯(PWM+DMA)
Zhaorming.
STM32stm32单片机嵌入式硬件
一、摘要本文主要目的是为了制作RoboMaster比赛能量机关的灯条控制,模拟比赛场中大符,搭建出类似场地道具,以供视觉测试使用的是RoboMaster开发板A型,芯片为STM32F427IIH6,使用的灯条为WS2812B。采用PWM+DMA控制,使用CUBEMX配置底层,keil5编辑烧录代码实现:一共五片扇叶,每片扇叶均实现流水灯+常亮颜色参考文章在后面会标记出来二、选型分析下面的分析仅从我
- STM32CubeMX 配置 STM32F407时钟树和烧录方式
-Harvey
STM32stm32嵌入式硬件单片机STM32CubeMX
时钟树要先把HighSpeedClock设置为外部晶振,再去设置时钟树PLL选用高速外部时钟线(HSE)Inputfrequency数值为外部晶振,大多开发板上为8MSYSCLK为系统时钟,F407为168MHzAPB2外设时钟线为系统时钟的一半APB1外设时钟线为APB2系统时钟线的一半输入参数后,回车,软件会自动更改所有配置配置调试模式选择Debug为SerialWireSW调试模式只需要四根
- STM32-点亮 LED
nownow_
stm32stm32嵌入式硬件单片机
目录1、电路构成及原理图2、编写实现代码3、代码讲解4、烧录到开发板调试、验证代码5、检验效果本人使用的是朗峰STM32F103系列开发板,此笔记基于这款开发板记录。1、电路构成及原理图首先,通过朗峰F1开发板LED部分原理图看到,一共有两颗用于程序调试的LED(发光二极管)LED1(红色)、LED2(绿色),而且两颗发光二极管的正极分别通过了一个限流电阻R52和R53接到3.3v电源端。两颗LE
- STM32-开发工具
nownow_
stm32stm32嵌入式硬件单片机
开发过程中可能用到的工具1、烧录下载调试工具ST-LINKST-LINK,是ST(意法半导体)推出的调试编程工具,适用于STM32系列芯片的USB接口的下载及在线仿真器。2、串口调试工具/串口下载工具串口调试工具是一种用于通过串口通信协议与目标设备进行数据交换和通信的软件工具。在STM32开发中,串口调试工具常常被用来与目标STM32微控制器进行通信,以实现数据的发送和接收、命令的发送以及调试信息
- uboot启动内核命令:bootz、bootm、boot
Can!
ubootlinuxc语言
目录一、linux镜像拷贝到DRAM的方式二、uboot启动内核可以有三个命令:bootz、bootm、boot三、其它知识点一、linux镜像拷贝到DRAM的方式要启动Linux,需要先将Linux镜像文件拷贝到DRAM中,如果使用到设备树的话也需要将设备树拷贝到DRAM中。1、从EMMC、NAND等存储设备中将Linux镜像和设备树文件拷贝到DRAM从EMMC中启动Linux系统的话只需要使用
- Linux系统中 uboot、内核与文件系统之间的关系
玄奕子
嵌入式学习之Linux入门篇linuxubootLinux内核文件系统迅为电子
前言:最近正在学习Linux,总结了一下Linux系统中uboot、内核与文件系统之间的关系Linux初学者首先要搞清楚的三个文件:引导程序(bootoader):uboot.bin/uboot.imxLinux内核镜像:zlmage文件系统镜像:system.img/rootfs.tar.ba2初期很多工作都是围绕这三个知识点展开的开发环境搭建/编译系统/烧写系统不同的系统文件名会有差异设备树文
- 使用正点原子i.mx6ull加载字符驱动模块chrdevbase
是啊洋呀
正点原子字符驱动设备i.mx6ull
搞了整整两天才整好!踩了不少坑,记录一下0.操作基础操作前需要设置好如下配置1.开发板和ubuntu能够互相ping通2.开发板的SD卡中安装好uboot,我用的V2.4版本的,其他版本应该也行3.准备材料01_chrdevbase文件linux-imx-rel_imx_4.1.15_2.1.1_ga_alientek_v2.4.tar.bz2这个文件在01、例程源码->10、开发板教程对应的ub
- 用balenaEtcher烧录Ubuntu镜像时,显示U盘具有写保护
Java般若生
centos7ubuntulinux
用balenaEtcher烧录Ubuntu镜像时,显示U盘具有写保护diskpartlistdiskselectdiskposcleancreatepartitionprimaryexit再次执行快速格式化即可!
- java线程的无限循环和退出
3213213333332132
java
最近想写一个游戏,然后碰到有关线程的问题,网上查了好多资料都没满足。
突然想起了前段时间看的有关线程的视频,于是信手拈来写了一个线程的代码片段。
希望帮助刚学java线程的童鞋
package thread;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date
- tomcat 容器
BlueSkator
tomcatWebservlet
Tomcat的组成部分 1、server
A Server element represents the entire Catalina servlet container. (Singleton) 2、service
service包括多个connector以及一个engine,其职责为处理由connector获得的客户请求。
3、connector
一个connector
- php递归,静态变量,匿名函数使用
dcj3sjt126com
PHP递归函数匿名函数静态变量引用传参
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Current To-Do List</title>
</head>
<body>
- 属性颜色字体变化
周华华
JavaScript
function changSize(className){
var diva=byId("fot")
diva.className=className;
}
</script>
<style type="text/css">
.max{
background: #900;
color:#039;
- 将properties内容放置到map中
g21121
properties
代码比较简单:
private static Map<Object, Object> map;
private static Properties p;
static {
//读取properties文件
InputStream is = XXX.class.getClassLoader().getResourceAsStream("xxx.properti
- [简单]拼接字符串
53873039oycg
字符串
工作中遇到需要从Map里面取值拼接字符串的情况,自己写了个,不是很好,欢迎提出更优雅的写法,代码如下:
import java.util.HashMap;
import java.uti
- Struts2学习
云端月影
最近开始关注struts2的新特性,从这个版本开始,Struts开始使用convention-plugin代替codebehind-plugin来实现struts的零配置。
配置文件精简了,的确是简便了开发过程,但是,我们熟悉的配置突然disappear了,真是一下很不适应。跟着潮流走吧,看看该怎样来搞定convention-plugin。
使用Convention插件,你需要将其JAR文件放
- Java新手入门的30个基本概念二
aijuans
java新手java 入门
基本概念: 1.OOP中唯一关系的是对象的接口是什么,就像计算机的销售商她不管电源内部结构是怎样的,他只关系能否给你提供电就行了,也就是只要知道can or not而不是how and why.所有的程序是由一定的属性和行为对象组成的,不同的对象的访问通过函数调用来完成,对象间所有的交流都是通过方法调用,通过对封装对象数据,很大限度上提高复用率。 2.OOP中最重要的思想是类,类是模板是蓝图,
- jedis 简单使用
antlove
javarediscachecommandjedis
jedis.RedisOperationCollection.java
package jedis;
import org.apache.log4j.Logger;
import redis.clients.jedis.Jedis;
import java.util.List;
import java.util.Map;
import java.util.Set;
pub
- PL/SQL的函数和包体的基础
百合不是茶
PL/SQL编程函数包体显示包的具体数据包
由于明天举要上课,所以刚刚将代码敲了一遍PL/SQL的函数和包体的实现(单例模式过几天好好的总结下再发出来);以便明天能更好的学习PL/SQL的循环,今天太累了,所以早点睡觉,明天继续PL/SQL总有一天我会将你永远的记载在心里,,,
函数;
函数:PL/SQL中的函数相当于java中的方法;函数有返回值
定义函数的
--输入姓名找到该姓名的年薪
create or re
- Mockito(二)--实例篇
bijian1013
持续集成mockito单元测试
学习了基本知识后,就可以实战了,Mockito的实际使用还是比较麻烦的。因为在实际使用中,最常遇到的就是需要模拟第三方类库的行为。
比如现在有一个类FTPFileTransfer,实现了向FTP传输文件的功能。这个类中使用了a
- 精通Oracle10编程SQL(7)编写控制结构
bijian1013
oracle数据库plsql
/*
*编写控制结构
*/
--条件分支语句
--简单条件判断
DECLARE
v_sal NUMBER(6,2);
BEGIN
select sal into v_sal from emp
where lower(ename)=lower('&name');
if v_sal<2000 then
update emp set
- 【Log4j二】Log4j属性文件配置详解
bit1129
log4j
如下是一个log4j.properties的配置
log4j.rootCategory=INFO, stdout , R
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appe
- java集合排序笔记
白糖_
java
public class CollectionDemo implements Serializable,Comparable<CollectionDemo>{
private static final long serialVersionUID = -2958090810811192128L;
private int id;
private String nam
- java导致linux负载过高的定位方法
ronin47
定位java进程ID
可以使用top或ps -ef |grep java
![图片描述][1]
根据进程ID找到最消耗资源的java pid
比如第一步找到的进程ID为5431
执行
top -p 5431 -H
![图片描述][2]
打印java栈信息
$ jstack -l 5431 > 5431.log
在栈信息中定位具体问题
将消耗资源的Java PID转
- 给定能随机生成整数1到5的函数,写出能随机生成整数1到7的函数
bylijinnan
函数
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class RandNFromRand5 {
/**
题目:给定能随机生成整数1到5的函数,写出能随机生成整数1到7的函数。
解法1:
f(k) = (x0-1)*5^0+(x1-
- PL/SQL Developer保存布局
Kai_Ge
近日由于项目需要,数据库从DB2迁移到ORCAL,因此数据库连接客户端选择了PL/SQL Developer。由于软件运用不熟悉,造成了很多麻烦,最主要的就是进入后,左边列表有很多选项,自己删除了一些选项卡,布局很满意了,下次进入后又恢复了以前的布局,很是苦恼。在众多PL/SQL Developer使用技巧中找到如下这段:
&n
- [未来战士计划]超能查派[剧透,慎入]
comsci
计划
非常好看,超能查派,这部电影......为我们这些热爱人工智能的工程技术人员提供一些参考意见和思想........
虽然电影里面的人物形象不是非常的可爱....但是非常的贴近现实生活....
&nbs
- Google Map API V2
dai_lm
google map
以后如果要开发包含google map的程序就更麻烦咯
http://www.cnblogs.com/mengdd/archive/2013/01/01/2841390.html
找到篇不错的文章,大家可以参考一下
http://blog.sina.com.cn/s/blog_c2839d410101jahv.html
1. 创建Android工程
由于v2的key需要G
- java数据计算层的几种解决方法2
datamachine
javasql集算器
2、SQL
SQL/SP/JDBC在这里属于一类,这是老牌的数据计算层,性能和灵活性是它的优势。但随着新情况的不断出现,单纯用SQL已经难以满足需求,比如: JAVA开发规模的扩大,数据量的剧增,复杂计算问题的涌现。虽然SQL得高分的指标不多,但都是权重最高的。
成熟度:5星。最成熟的。
- Linux下Telnet的安装与运行
dcj3sjt126com
linuxtelnet
Linux下Telnet的安装与运行 linux默认是使用SSH服务的 而不安装telnet服务 如果要使用telnet 就必须先安装相应的软件包 即使安装了软件包 默认的设置telnet 服务也是不运行的 需要手工进行设置 如果是redhat9,则在第三张光盘中找到 telnet-server-0.17-25.i386.rpm
- PHP中钩子函数的实现与认识
dcj3sjt126com
PHP
假如有这么一段程序:
function fun(){
fun1();
fun2();
}
首先程序执行完fun1()之后执行fun2()然后fun()结束。
但是,假如我们想对函数做一些变化。比如说,fun是一个解析函数,我们希望后期可以提供丰富的解析函数,而究竟用哪个函数解析,我们希望在配置文件中配置。这个时候就可以发挥钩子的力量了。
我们可以在fu
- EOS中的WorkSpace密码修改
蕃薯耀
修改WorkSpace密码
EOS中BPS的WorkSpace密码修改
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
蕃薯耀 201
- SpringMVC4零配置--SpringSecurity相关配置【SpringSecurityConfig】
hanqunfeng
SpringSecurity
SpringSecurity的配置相对来说有些复杂,如果是完整的bean配置,则需要配置大量的bean,所以xml配置时使用了命名空间来简化配置,同样,spring为我们提供了一个抽象类WebSecurityConfigurerAdapter和一个注解@EnableWebMvcSecurity,达到同样减少bean配置的目的,如下:
applicationContex
- ie 9 kendo ui中ajax跨域的问题
jackyrong
AJAX跨域
这两天遇到个问题,kendo ui的datagrid,根据json去读取数据,然后前端通过kendo ui的datagrid去渲染,但很奇怪的是,在ie 10,ie 11,chrome,firefox等浏览器中,同样的程序,
浏览起来是没问题的,但把应用放到公网上的一台服务器,
却发现如下情况:
1) ie 9下,不能出现任何数据,但用IE 9浏览器浏览本机的应用,却没任何问题
- 不要让别人笑你不能成为程序员
lampcy
编程程序员
在经历六个月的编程集训之后,我刚刚完成了我的第一次一对一的编码评估。但是事情并没有如我所想的那般顺利。
说实话,我感觉我的脑细胞像被轰炸过一样。
手慢慢地离开键盘,心里很压抑。不禁默默祈祷:一切都会进展顺利的,对吧?至少有些地方我的回答应该是没有遗漏的,是不是?
难道我选择编程真的是一个巨大的错误吗——我真的永远也成不了程序员吗?
我需要一点点安慰。在自我怀疑,不安全感和脆弱等等像龙卷风一
- 马皇后的贤德
nannan408
马皇后不怕朱元璋的坏脾气,并敢理直气壮地吹耳边风。众所周知,朱元璋不喜欢女人干政,他认为“后妃虽母仪天下,然不可使干政事”,因为“宠之太过,则骄恣犯分,上下失序”,因此还特地命人纂述《女诫》,以示警诫。但马皇后是个例外。
有一次,马皇后问朱元璋道:“如今天下老百姓安居乐业了吗?”朱元璋不高兴地回答:“这不是你应该问的。”马皇后振振有词地回敬道:“陛下是天下之父,
- 选择某个属性值最大的那条记录(不仅仅包含指定属性,而是想要什么属性都可以)
Rainbow702
sqlgroup by最大值max最大的那条记录
好久好久不写SQL了,技能退化严重啊!!!
直入主题:
比如我有一张表,file_info,
它有两个属性(但实际不只,我这里只是作说明用):
file_code, file_version
同一个code可能对应多个version
现在,我想针对每一个code,取得它相关的记录中,version 值 最大的那条记录,
SQL如下:
select
*
- VBScript脚本语言
tntxia
VBScript
VBScript 是基于VB的脚本语言。主要用于Asp和Excel的编程。
VB家族语言简介
Visual Basic 6.0
源于BASIC语言。
由微软公司开发的包含协助开发环境的事
- java中枚举类型的使用
xiao1zhao2
javaenum枚举1.5新特性
枚举类型是j2se在1.5引入的新的类型,通过关键字enum来定义,常用来存储一些常量.
1.定义一个简单的枚举类型
public enum Sex {
MAN,
WOMAN
}
枚举类型本质是类,编译此段代码会生成.class文件.通过Sex.MAN来访问Sex中的成员,其返回值是Sex类型.
2.常用方法
静态的values()方