ILI9225 TFT显示屏16位并口方式驱动

 所用屏及资料如后图:

        ILI9225,176*220,8位或16位并口屏,IM0接GND,电源及背光接3.3v

主控:CH32V307驱动(库文件和STM32基本一样)

c281035882904959834e30a8f7bcf272.jpg

c21901d90e184cd7872f39d1657b7eb1.jpeg

2acba43771e6452a97e0b1758515f9e9.jpeg

一、源码

ILI9225.c

#include "ILI9225.h"
#include "ch32v30x_gpio.h"
//---汉字的字库头文件---//
#include"charcode.h"/* Global Variable */
unsigned char fch,fcl;  //前景色高位和低位
/*** CS --_____________________________--,低:有效* RD ---------------------------------,高:写* WR  -__--__--__--__--__--__--__-----,低:写* RS _________________________________,低:Index* RS ---------------------------------,高:Data**/
void LCD_Writ_Bus16(unsigned char VH,unsigned char VL)
{u16 val;val=((VH<<8)&0xFF00)+VL;LCD_WR_SET;LCD_RD_SET;GPIO_Write(LCD_PORT,val);LCD_WR_CLR;LCD_WR_SET;}void LCD_Write_COM(unsigned char VL)
{LCD_CS_CLR;LCD_RS_CLR;LCD_Writ_Bus16(0x00,VL);LCD_CS_SET;
}void LCD_Write_DATA(unsigned char VH,unsigned char VL)
{LCD_CS_CLR;LCD_RS_SET;LCD_Writ_Bus16(VH,VL);LCD_CS_SET;
}void LCD_Write_DATA16(unsigned short val)
{LCD_CS_CLR;LCD_RS_SET;LCD_RD_SET;LCD_WR_CLR;GPIO_Write(LCD_PORT,val);LCD_WR_CLR;LCD_WR_SET;LCD_CS_SET;}void LCD_Write_COM_DATA(unsigned char com1,unsigned short dat1)
{LCD_Write_COM(com1);LCD_Write_DATA16(dat1);
}/** @prief InitLCD*/
void InitLCD()
{LCD_Reset();Delay_Ms(150);printf("ili9225 Initial\r\n");Delay_Ms(50);LCD_CS_CLR;LCD_Write_COM_DATA(0x10, 0x0000);LCD_Write_COM_DATA(0x11, 0x0000);LCD_Write_COM_DATA(0x12, 0x0000);LCD_Write_COM_DATA(0x13, 0x0000);LCD_Write_COM_DATA(0x14, 0x0000);Delay_Ms(40);LCD_Write_COM_DATA(0x11, 0x0018);LCD_Write_COM_DATA(0x12, 0x6121);LCD_Write_COM_DATA(0x13, 0x006F);LCD_Write_COM_DATA(0x14, 0x495F);LCD_Write_COM_DATA(0x10, 0x0800);Delay_Ms(10);LCD_Write_COM_DATA(0x11, 0x103B);Delay_Ms(50);LCD_Write_COM_DATA(0x01, 0x011C);LCD_Write_COM_DATA(0x02, 0x0100);LCD_Write_COM_DATA(0x03, 0x1030);LCD_Write_COM_DATA(0x07, 0x0000);LCD_Write_COM_DATA(0x08, 0x0808);LCD_Write_COM_DATA(0x0b, 0x1100);LCD_Write_COM_DATA(0x0c, 0x0000);LCD_Write_COM_DATA(0x0f, 0x0D01);LCD_Write_COM_DATA(0x15, 0x0020);LCD_Write_COM_DATA(0x20, 0x0000);LCD_Write_COM_DATA(0x21, 0x0000);LCD_Write_COM_DATA(0x30, 0x0000);LCD_Write_COM_DATA(0x31, 0x00DB);LCD_Write_COM_DATA(0x32, 0x0000);LCD_Write_COM_DATA(0x33, 0x0000);LCD_Write_COM_DATA(0x34, 0x00DB);LCD_Write_COM_DATA(0x35, 0x0000);LCD_Write_COM_DATA(0x36, 0x00AF);LCD_Write_COM_DATA(0x37, 0x0000);LCD_Write_COM_DATA(0x38, 0x00DB);LCD_Write_COM_DATA(0x39, 0x0000);LCD_Write_COM_DATA(0x50, 0x0000);LCD_Write_COM_DATA(0x51, 0x0808);LCD_Write_COM_DATA(0x52, 0x080A);LCD_Write_COM_DATA(0x53, 0x000A);LCD_Write_COM_DATA(0x54, 0x0A08);LCD_Write_COM_DATA(0x55, 0x0808);LCD_Write_COM_DATA(0x56, 0x0000);LCD_Write_COM_DATA(0x57, 0x0A00);LCD_Write_COM_DATA(0x58, 0x0710);LCD_Write_COM_DATA(0x59, 0x0710);LCD_Write_COM_DATA(0x07, 0x0012);Delay_Ms(50);LCD_Write_COM_DATA(0x07, 0x1017);LCD_Write_COM(0x22);LCD_CS_SET;
}void LCD_Reset(void)
{LCD_RST_CLR;Delay_Ms(50);LCD_RST_SET;Delay_Ms(150);
}/** @prief clrScr 清屏*/
void clrScr(unsigned short color)
{int i;u8 ch,cl;ch=color>>8;cl=color&0xff;clrXY();for (i=0; i<((disp_x_size+1)*(disp_y_size+1)); i++){LCD_Write_DATA(ch,cl);}}void setXY(unsigned char x1, unsigned char y1, unsigned char x2, unsigned char y2)
{LCD_Write_COM_DATA(0x36,x2);LCD_Write_COM_DATA(0x37,x1);LCD_Write_COM_DATA(0x38,y2);LCD_Write_COM_DATA(0x39,y1);LCD_Write_COM_DATA(0x20,x1);LCD_Write_COM_DATA(0x21,y1);LCD_Write_COM(0x22);
}void clrXY()
{setXY(0,0,disp_x_size,disp_y_size);
}
void setPixel(unsigned char color)
{LCD_Write_DATA((color>>8),(color&0xFF));    // rrrrrggggggbbbbb}void drawPixel(unsigned char  x, unsigned char  y)
{setXY(x, y, x, y);setPixel((fch<<8)|fcl);clrXY();
}void setColor(unsigned short color)
{fch=color>>8;fcl=color & 0xFF;
}void drawHLine(unsigned char x, unsigned char y, unsigned char l)
{setXY(x, y, x+l, y);for(int i=0; i<l+1; i++){LCD_Write_DATA(fch, fcl);}clrXY();
}void drawVLine(unsigned char x, unsigned char y, unsigned char l)
{setXY(x, y, x, y+l);for(int i=0; i<l+1; i++){LCD_Write_DATA(fch, fcl);}clrXY();
}void drawLine(unsigned char  x1, unsigned char  y1, unsigned char  x2, unsigned char  y2)
{if (y1==y2)drawHLine(x1, y1, x2-x1);else if (x1==x2)drawVLine(x1, y1, y2-y1);else{unsigned int    dx = (x2 > x1 ? x2 - x1 : x1 - x2);short           xstep =  x2 > x1 ? 1 : -1;unsigned int    dy = (y2 > y1 ? y2 - y1 : y1 - y2);short           ystep =  y2 > y1 ? 1 : -1;int             col = x1, row = y1;if (dx < dy){int t = - (dy >> 1);while (1){setXY (col, row, col, row);LCD_Write_DATA(fch, fcl);if (row == y2)return;row += ystep;t += dx;if (t >= 0){col += xstep;t   -= dy;}}}else{int t = - (dx >> 1);while (1){setXY (col, row, col, row);LCD_Write_DATA(fch, fcl);if (col == x2)return;col += xstep;t += dy;if (t >= 0){row += ystep;t   -= dx;}}}}clrXY();
}void drawRect(int x1, int y1, int x2, int y2)
{drawHLine(x1, y1, x2-x1);drawHLine(x1, y2, x2-x1);drawVLine(x1, y1, y2-y1);drawVLine(x2, y1, y2-y1);
}void drawRect1(unsigned char x, unsigned char y, unsigned char w, unsigned char h, unsigned short c)
{setColor(c);drawRect(x, y,x+w-1 , y+h-1);
}void fillRect(int x1, int y1, int x2, int y2)
{
/*for (int i=0; i<((x2-x1)/2)+1; i++){drawVLine(x1+i, y1, y2-y1);drawVLine(x2-i, y1, y2-y1);}*/setXY(x1, y1, x2, y2);for(int i=0; i<(x2-x1)*(y2-y1)-1; i++){LCD_Write_DATA(fch, fcl);}clrXY();
}
void drawRoundRect(int x1, int y1, int x2, int y2)
{if ((x2-x1)>4 && (y2-y1)>4){drawPixel(x1+1,y1+1);drawPixel(x2-1,y1+1);drawPixel(x1+1,y2-1);drawPixel(x2-1,y2-1);drawHLine(x1+2, y1, x2-x1-4);drawHLine(x1+2, y2, x2-x1-4);drawVLine(x1, y1+2, y2-y1-4);drawVLine(x2, y1+2, y2-y1-4);}
}void fillRoundRect(int x1, int y1, int x2, int y2)
{if ((x2-x1)>4 && (y2-y1)>4){for (int i=0; i<((y2-y1)/2)+1; i++){switch(i){case 0:drawHLine(x1+2, y1+i, x2-x1-4);drawHLine(x1+2, y2-i, x2-x1-4);break;case 1:drawHLine(x1+1, y1+i, x2-x1-2);drawHLine(x1+1, y2-i, x2-x1-2);break;default:drawHLine(x1, y1+i, x2-x1);drawHLine(x1, y2-i, x2-x1);}}}
}void drawCircle(int x, int y, int radius)
{int f = 1 - radius;int ddF_x = 1;int ddF_y = -2 * radius;int x1 = 0;int y1 = radius;setXY(x, y + radius, x, y + radius);LCD_Write_DATA(fch,fcl);setXY(x, y - radius, x, y - radius);LCD_Write_DATA(fch,fcl);setXY(x + radius, y, x + radius, y);LCD_Write_DATA(fch,fcl);setXY(x - radius, y, x - radius, y);LCD_Write_DATA(fch,fcl);while(x1 < y1){if(f >= 0){y1--;ddF_y += 2;f += ddF_y;}x1++;ddF_x += 2;f += ddF_x;setXY(x + x1, y + y1, x + x1, y + y1);LCD_Write_DATA(fch,fcl);setXY(x - x1, y + y1, x - x1, y + y1);LCD_Write_DATA(fch,fcl);setXY(x + x1, y - y1, x + x1, y - y1);LCD_Write_DATA(fch,fcl);setXY(x - x1, y - y1, x - x1, y - y1);LCD_Write_DATA(fch,fcl);setXY(x + y1, y + x1, x + y1, y + x1);LCD_Write_DATA(fch,fcl);setXY(x - y1, y + x1, x - y1, y + x1);LCD_Write_DATA(fch,fcl);setXY(x + y1, y - x1, x + y1, y - x1);LCD_Write_DATA(fch,fcl);setXY(x - y1, y - x1, x - y1, y - x1);LCD_Write_DATA(fch,fcl);}clrXY();
}void fillCircle(int x, int y, int radius)
{for(int y1=-radius; y1<=0; y1++)for(int x1=-radius; x1<=0; x1++)if(x1*x1+y1*y1 <= radius*radius){drawHLine(x+x1, y+y1, 2*(-x1));drawHLine(x+x1, y-y1, 2*(-x1));break;}
}void show_color_bar()
{unsigned long i,j;clrXY();for (i=0; i<disp_y_size; i++){for (j=0; j<disp_x_size; j++){if(i>210){LCD_Write_DATA(0xFA,0x00);}else if(i>180){LCD_Write_DATA(0x04,0x00);}else if(i>150){LCD_Write_DATA(0xC6,0x18);}else if(i>120){LCD_Write_DATA(0x00,0x1F);}else if(i>90){LCD_Write_DATA(0x84,0x10);}else if(i>60){LCD_Write_DATA(0x80,0x00);}else if(i>30){LCD_Write_DATA(0xFF,0xE0);}else {LCD_Write_DATA(0x80,10);}}}
}/****************************************************************************
*函数名:GUI_Dot
*输  入:x:点的X坐标
*      * y:点的Y坐标
*      * color:点的颜色
*输  出:
*功  能:给一块3*3像素涂上颜色。
****************************************************************************/void GUI_Dot(uint x, uint y, uint color)
{u8 i;setXY(x , y , x, y);  //单个像素  XS YS XE YEfor(i=0; i<9; i++){LCD_Write_DATA(color>>8,color&0xFF);}
}void GUI_Write32CnChar(unsigned char x, unsigned char y, unsigned char *cn, unsigned short wordColor, unsigned short backColor)
{u8 i, j, wordNum;uint color;while (*cn != '\0'){setXY(x, y, x+31, y+28);for (wordNum=0; wordNum<20; wordNum++){   //wordNum扫描字库的字数if ((CnChar32x29[wordNum].Index[0]==*cn)&&(CnChar32x29[wordNum].Index[1]==*(cn+1))){for(i=0; i<116; i++){   //MSK的位数color=CnChar32x29[wordNum].Msk[i];for(j=0;j<8;j++){if((color&0x80)==0x80){LCD_Write_DATA(wordColor>>8,wordColor&0xFF);}else{LCD_Write_DATA(backColor>>8,backColor&0xFF);}color<<=1;}//for(j=0;j<8;j++)结束}}} //for (wordNum=0; wordNum<20; wordNum++)结束cn += 2;x += 32;}
}void GUI_WriteASCII(unsigned char  x, unsigned char  y, unsigned char  *p, unsigned short  wordColor, unsigned short  backColor)
{u8 j, wordByte,wordNum;uint color;while(*p != '\0'){wordNum = *p - 32;setXY(x,y,x+15, y+23);for (wordByte=0; wordByte<48; wordByte++){color = ASCII16x24[wordNum][wordByte];for (j=0; j<8; j++){if ((color&0x80) == 0x80){LCD_Write_DATA(wordColor>>8,wordColor&0xFF);}else{LCD_Write_DATA(backColor>>8,backColor&0xFF);}color <<= 1;}}p++;x +=16;}
}

ILI9225.h

#ifndef USER_ILI9225_H_
#define USER_ILI9225_H_#define disp_x_size 176
#define disp_y_size 220//*********************************
// COLORS
//*********************************
// VGA color palette
#define VGA_BLACK       0x0000
#define VGA_WHITE       0xFFFF
#define VGA_RED         0xF800
#define VGA_GREEN       0x0400
#define VGA_BLUE        0x001F
#define VGA_SILVER      0xC618
#define VGA_GRAY        0x8410
#define VGA_MAROON      0x8000
#define VGA_YELLOW      0xFFE0
#define VGA_OLIVE       0x8400
#define VGA_LIME        0x07E0
#define VGA_AQUA        0x07FF
#define VGA_TEAL        0x0410
#define VGA_NAVY        0x0010
#define VGA_FUCHSIA     0xF81F
#define VGA_PURPLE      0x8010
#define VGA_TRANSPARENT 0xFFFFFFFF/**  GND-1;VDD(3V3)-2;  IM0-25 接GND 16bit; LED-:31~33;LED+:34*/
#define LCD_CS GPIO_Pin_1       //4
#define LCD_RS GPIO_Pin_2       //5
#define LCD_WR GPIO_Pin_3       //6
#define LCD_RST GPIO_Pin_4      //24
#define LCD_RD GPIO_Pin_5       //7#define LCD_PORT GPIOD          //8-23#define LCD_CS_SET GPIO_WriteBit(GPIOA, LCD_CS,Bit_SET)
#define LCD_CS_CLR GPIO_WriteBit(GPIOA, LCD_CS,Bit_RESET)#define LCD_RS_SET GPIO_WriteBit(GPIOA, LCD_RS,Bit_SET)
#define LCD_RS_CLR GPIO_WriteBit(GPIOA, LCD_RS,Bit_RESET)#define LCD_WR_SET GPIO_WriteBit(GPIOA, LCD_WR,Bit_SET)
#define LCD_WR_CLR GPIO_WriteBit(GPIOA, LCD_WR,Bit_RESET)#define LCD_RST_SET GPIO_WriteBit(GPIOA, LCD_RST,Bit_SET)
#define LCD_RST_CLR GPIO_WriteBit(GPIOA, LCD_RST,Bit_RESET)#define LCD_RD_SET GPIO_WriteBit(GPIOA, LCD_RD,Bit_SET)
#define LCD_RD_CLR GPIO_WriteBit(GPIOA, LCD_RD,Bit_RESET)void LCD_Writ_Bus16(unsigned char VH,unsigned char VL);
void LCD_Write_COM(unsigned char VL);
void LCD_Write_DATA(unsigned char VH,unsigned char VL);
void LCD_Write_DATA16(unsigned short val);
void LCD_Write_COM_DATA(unsigned char com1,unsigned short dat1);
void InitLCD();
void LCD_Reset(void);
void clrScr(unsigned short color);
void clrXY();
void setPixel(unsigned char color);
void drawPixel(unsigned char  x, unsigned char  y);
void setColor(unsigned short color);
void drawHLine(unsigned char x, unsigned char y, unsigned char l);
void drawVLine(unsigned char x, unsigned char y, unsigned char l);
void drawLine(unsigned char  x1, unsigned char  y1, unsigned char  x2, unsigned char  y2);void fillRoundRect(int x1, int y1, int x2, int y2);
void drawCircle(int x, int y, int radius);
void fillCircle(int x, int y, int radius);
void drawRect(int x1, int y1, int x2, int y2);
void drawRect1(unsigned char x, unsigned char y, unsigned char w, unsigned char h, unsigned short c);
void fillRect(int x1, int y1, int x2, int y2);
void drawRoundRect(int x1, int y1, int x2, int y2);
void show_color_bar();void GUI_Write32CnChar(unsigned char x, unsigned char y, unsigned char *cn, unsigned short wordColor, unsigned short backColor);
void GUI_WriteASCII(unsigned char  x, unsigned char  y, unsigned char  *p, unsigned short  wordColor, unsigned short  backColor);#endif /* USER_ILI9225_H_ */

main.c

#include "debug.h"
#include "ILI9225.h"/* Global typedef *//* Global define */
#define CHAR32_SHOW
/* Global Variable */void LCD_GPIO_Init(void)
{GPIO_InitTypeDef GPIO_InitStructure = {0};RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);GPIO_InitStructure.GPIO_Pin = LCD_CS|LCD_RS|LCD_WR|LCD_RST|LCD_RD;GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;GPIO_Init(GPIOA, &GPIO_InitStructure);//16位并口RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOD, ENABLE);GPIO_InitStructure.GPIO_Pin = GPIO_Pin_All;GPIO_Init(LCD_PORT, &GPIO_InitStructure);}/********************************************************************** @fn      main** @brief   Main program.** @return  none*/
int main(void)
{NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);SystemCoreClockUpdate();Delay_Init();USART_Printf_Init(115200);	printf("SystemClk:%d\r\n",SystemCoreClock);printf( "ChipID:%08x\r\n", DBGMCU_GetCHIPID() );printf("This is printf example\r\n");LCD_GPIO_Init();InitLCD();while(1){show_color_bar();GUI_Write32CnChar(10,10,"科技日期",VGA_WHITE,VGA_BLUE);GUI_WriteASCII(10,60,"abcdefghijkl",VGA_WHITE,VGA_RED);GUI_WriteASCII(10,90,"ABCDEFGHIJKL",VGA_WHITE,VGA_RED);GUI_WriteASCII(10,120,"!@#$%^&*()~;:",VGA_WHITE,VGA_RED);Delay_Ms(3000);setColor(VGA_WHITE);clrScr(VGA_RED);fillRoundRect(50,50,100,100);Delay_Ms(1000);clrScr(VGA_GREEN);fillRoundRect(50,50,100,100);Delay_Ms(1000);clrScr(VGA_BLUE);fillRoundRect(50,50,100,100);Delay_Ms(1000);clrScr(VGA_YELLOW);fillRoundRect(50,50,100,100);setColor(VGA_RED);drawCircle(100,100,50);Delay_Ms(1000);}
}

二、总结

1、不会看屏幕引脚定义.开始找了一款LGDP4525和这个定义是一样的,试了一天不行。又查了一下,相同款还有ILI9225驱动的,引脚定义完全相同。试了一下可以。

ILI9225演示用

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/207026.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Jmeter性能测试:高并发分布式性能测试

一、为什么要进行分布式性能测试 当进行高并发性能测试的时候&#xff0c;受限于Jmeter工具本身和电脑硬件的原因&#xff0c;无法满足我们对大并发性能测试的要求。 基于这种场景下&#xff0c;我们就需要采用分布式的方式来实现我们高并发的性能测试要求。 二、分布式性能…

学习MySQL先有全局观,细说其发展历程及特点

学习MySQL先有全局观&#xff0c;细说其发展历程及特点 一、枝繁叶茂的MySQL家族1. 发展历程2. 分支版本 二、特点分析1. 常用数据库2. 选型角度及场景 三、三大组成部分四、总结 相信很多同学在接触编程之初&#xff0c;就接触过数据库&#xff0c;而对于其中关系型数据库中的…

使用Java Servlet生成动态二维码

文章目录 引入ZXing库创建QRCodeServlet部署到Servlet容器拓展功能1. 动态生成二维码内容2. 调整二维码尺寸3. 错误修正级别4. 日志输出 结语 &#x1f389;欢迎来到Java学习路线专栏~探索Java中的静态变量与实例变量 ☆* o(≧▽≦)o *☆嗨~我是IT陈寒&#x1f379;✨博客主页&…

Linux程序之可变参数选项那些事!

一、linux应用程序如何接收参数&#xff1f; 1. argc、argv Linux应用程序执行时&#xff0c;我们往往通过命令行带入参数给程序&#xff0c;比如 ls /dev/ -l 其中参数 /dev/ 、-l都是作为参数传递给命令 ls 应用程序又是如何接收这些参数的&#xff1f; 通常应用程序都…

矩阵知识补充

正交矩阵 定义&#xff1a; 正交矩阵是一种满足 A T A E A^{T}AE ATAE的方阵 正交矩阵具有以下几个重要性质&#xff1a; A的逆等于A的转置&#xff0c;即 A − 1 A T A^{-1}A^{T} A−1AT**A的行列式的绝对值等于1&#xff0c;即 ∣ d e t ( A ) ∣ 1 |det(A)|1 ∣det(A)∣…

Mysql中自增主键是如何工作的

自增主键的特点是当表中每新增一条记录时&#xff0c;主键值会根据自增步长自动叠加&#xff0c;通常会将自增步长设置1&#xff0c;也就是说自增主键值是连续的。那么MySQL自增主键值一定会连续吗&#xff1f;今天这篇文章就来说说这个问题&#xff0c;看看什么情况下自增主键…

Java游戏之飞翔的小鸟

前言 飞翔的小鸟 小游戏 可以作为 java入门阶段的收尾作品 &#xff1b; 需要掌握 面向对象的使用以及了解 多线程&#xff0c;IO流&#xff0c;异常处理&#xff0c;一些java基础等相关知识。一 、游戏分析 1. 分析游戏逻辑 &#xff08;1&#xff09;先让窗口显示出来&#x…

【小黑送书—第九期】>>重磅!这本30w人都在看的Python数据分析畅销书:更新了!

想学习python进行数据分析&#xff0c;这本《利用python进行数据分析》是绕不开的一本书。目前该书根据Python3.10已经更新到第三版。 Python 语言极具吸引力。自从 1991 年诞生以来&#xff0c;Python 如今已经成为最受欢迎的解释型编程语言。 pandas 诞生于2008年。它是由韦…

笔试题之指针结合数组的精讲2

&#x1d649;&#x1d65e;&#x1d658;&#x1d65a;!!&#x1f44f;&#x1f3fb;‧✧̣̥̇‧✦&#x1f44f;&#x1f3fb;‧✧̣̥̇‧✦ &#x1f44f;&#x1f3fb;‧✧̣̥̇:Solitary-walk ⸝⋆ ━━━┓ - 个性标签 - &#xff1a;来于“云”的“羽球人”。…

【高级网络程序设计】Week3-2 Servlet

一、 What are servlets? 1. 定义 &#xff08;1&#xff09;Servlets are Java’s answer to CGI&#xff1a; programs that run on a web server acting as middle layer between HTTP request and databases or other applications.Used for client requests that cann…

羊大师提示,羊奶都有哪些惊人功效?

羊奶不仅是一种美味的健康饮品&#xff0c;在近年来备受瞩目的的健康圈子里&#xff0c;羊奶还被赋予了更多的功效&#xff0c;成为一种备受推崇的保健品。羊奶不但富含营养&#xff0c;而且还有着非常多的益处&#xff0c;它能够用来美容、保健&#xff0c;甚至还可以治疗某些…

网络异常检测

随着社交网络、视频流、点对点技术、云计算和 SaaS 的出现&#xff0c;可以肯定地说&#xff0c;现代企业的好坏取决于他们的网络&#xff0c;尤其是在它们提供的带宽和安全性方面。无论是银行保护其数据免遭盗窃&#xff0c;还是商业组织保护其网络免受安全威胁和攻击&#xf…