求求ps大神p出的囧图帮忙

thinkphp3.2 无法加载控制器:Index 求大神帮忙 - ThinkPHP框架
'APP_GROUP_LIST'=&'Home,Admin',//开启分组
'DEFAULT_MODULE'
=& 'Home', //默认模块
每时每刻想
ThinkPHP 是一个免费开源的,快速、简单的面向对象的 轻量级PHP开发框架 ,创立于2006年初,遵循Apache2开源协议发布,是为了敏捷WEB应用开发和简化企业应用开发而诞生的。ThinkPHP从诞生以来一直秉承简洁实用的设计原则,在保持出色的性能和至简的代码的同时,也注重易用性。并且拥有众多的原创功能和特性,在社区团队的积极参与下,在易用性、扩展性和性能方面不断优化和改进,已经成长为国内最领先和最具影响力的WEB应用开发框架,众多的典型案例确保可以稳定用于商业以及门户级的开发。求大神,求歌曲名_土豆_高清视频在线观看22:11 提问
求大神帮忙
*##############################################################################
: 阳光酒店管理系统
: 系统登陆窗口
: Login.java
[ 相关文件
[ 文件实现功能]
: 系统登陆窗口
----------------------------------------------------------------------------
----------------------------------------------------------------------------
[ 修改记录
[修改内容]
自动记录登录日志
##--------------------------------------------------------------------------
版权所有(c) ,
SunshineSOFT Corporation
--------------------------------------------------------------------------##
[ 函数说明
[## public Login() {} ]:
功能: 构造函数
组建登录窗口
[## private void buildCenter() {} ]:
功能: 组建用户名密码面板,仅类内使用
[## private void quit() {} ]:
功能: 关闭系统函数,仅类内使用
[## private void dengLu() {} ]:
功能: 密码验证通过,进入主操作界面,仅类内使用
[ 遗留问题
*##############################################################################
package com.sunshine.
import javax.swing.*;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import com.sunshine.sunsdk.sql.*;
import com.sunshine.sunsdk.swing.*;
import com.sunshine.sunsdk.system.*;
import com.sunshine.mainframe.*;
public class Login extends JFrame
implements ActionListener, KeyListener, ItemListener, FocusListener {
JLabel top,
JPasswordF
JButton bt1, bt2;
JPanel panelMain, panelI
String clue = "
//登记次数记数器
/**=======================================================================**
[## public Login() {} ]:
返回值 :无
修饰符 :public
:组建登录窗口
**=======================================================================**
public Login() {
super("系 统 登 录");
top = new JLabel (new ImageIcon("pic/login_top.gif"));
bott = new JLabel();
panelMain = new JPanel(new BorderLayout(10, 10));
bott.setBorder(new LineBorder (new Color(184, 173, 151)));
buildCenter();
panelMain.add("North", top);
panelMain.add("South", bott);
panelMain.add(panelInfo);
//加事件监听
bt1.addActionListener(this);
bt2.addActionListener(this);
bt1.addFocusListener (this);
bt2.addFocusListener (this);
bt1.addKeyListener (this);
bt2.addKeyListener (this);
cb.addItemListener (this);
cb.addFocusListener(this);
pf.addFocusListener(this);
cb.addKeyListener (this);
pf.addKeyListener (this);
//加窗口监听 new WindowAdapter适配器类
this.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent we) {
}//End windowClosing
this.setContentPane(panelMain);
//设置窗口面板
this.setSize(350, 235);
this.setResizable (false);
//设置窗口不可放大缩小
this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
sunswing.setWindowCenter(this);
this.setVisible(true);
pf.requestFocus(true);
//设置焦点给密码框
/**=======================================================================**
[## private void buildCenter() {} ]:
制作用户名密码面板
返回值 :无
修饰符 :private
:组建用户名密码面板,仅类内使用
**=======================================================================**
private void buildCenter() {
JLabel lb1, lb2;
JPanel pa1, pa2, pa3;
lb1 = new JLabel("用
lb2 = new JLabel("登录密码 :");
= new JComboBox();
= new TJPasswordField (15);
bt1 = new TJButton ("pic/key.gif", "登
录", "登录系统");
bt2 = new TJButton ("pic/exit.gif", "退
出", "关闭系统");
sunsql.initJComboBox (cb, "select userid from pwd where delmark=0");
//定义面板为无部局
panelInfo = new JPanel(null);
//加入组件
panelInfo.add(lb1);
panelInfo.add(lb2);
panelInfo.add(cb);
panelInfo.add(pf);
panelInfo.add(bt1);
panelInfo.add(bt2);
lb1.setBounds(50,14,60,20);
lb2.setBounds(50,48,60,20);
bt1.setBounds(68,77,86,28);
bt2.setBounds(186,77,86,28);
cb.setBounds (115,12,168,23);
pf.setBounds (115,46,170,23);
//设定边框线
panelInfo.setBorder(BorderFactory.createTitledBorder(""));
/**=======================================================================**
[## private void quit() {} ]:
返回值 :无
修饰符 :private
:关闭系统函数,仅类内使用
**=======================================================================**
private void quit() {
int flag = 0;
String msg = "您 现 在 要 关 闭 系 统 吗 ?";
flag = JOptionPane.showConfirmDialog(null, msg, "提示", JOptionPane.YES_NO_OPTION);
if(flag == JOptionPane.YES_OPTION) {
this.setVisible(false);
System.exit(0);
}//End if(flag == JOptionPane.YES_OPTION)
/**=======================================================================**
[## private void dengLu() {} ]:
返回值 :无
修饰符 :private
:密码验证通过,进入主操作界面,仅类内使用
**=======================================================================**
private void dengLu() {
String user = cb.getSelectedItem() + "";
String pwd
= String.valueOf(pf.getPassword());
String code = "select pwd,puis from pwd where delmark=0 and userid='" + user + "'";
ResultSet rs = sunsql.executeQuery (code);
if(rs.next()) {
//用户名存在
if(pwd.equals(rs.getString(1))) {
bott.setText(clue + "登录成功,正在进入系统 ...");
String puis = rs.getString(2);
//获得操作员权限
boolean flag = Journal.writeJournalInfo(user, "登录本系统", Journal.TYPE_LG);
if(flag) {
//记录日志
new com.sunshine.mainframe.HotelFrame(user, puis);
//进入主程序窗口(用户名, 权限)
this.setVisible(false);
String msg = "写日志错误,请与系统管理员联系 ...";
JOptionPane.showMessageDialog(null, msg, "错误", JOptionPane.ERROR_MESSAGE);
System.exit(0);
bott.setText(clue + "用户 [ " + user + " ] 的密码不正确,请重新输入 ...");
if(flag == 3) {
//三次密码验证
JOptionPane.showMessageDialog(null, "您不是本系统的管理员,系统关闭 ...", "警告", JOptionPane.ERROR_MESSAGE);
System.exit(0);
}//End if(flag == 3)
}//End if(pwd.equals(rs.getString(1)))
bott.setText(clue + "用户ID [ " + user + " ] 不存在 ...");
}//End if(rs.next())
catch (Exception ex) {
ex.printStackTrace();
}//End try
/**=======================================================================**
ActionListener 监听
**=======================================================================**
public void actionPerformed (ActionEvent ae) {
//动作监听
if(ae.getSource() == bt1) {
//登录按键
}//End if(ae.getSource() == bt1)
/**=======================================================================**
ItemListener 监听
**=======================================================================**
public void itemStateChanged (ItemEvent ie) {
pf.requestFocus(true);
/**=======================================================================**
KeyListener 监听
**=======================================================================**
public void keyPressed (KeyEvent ke) {
//键盘按下监听
int key = ke.getKeyCode();
if(key == KeyEvent.VK_ENTER) {
if(ke.getSource() == cb)
pf.requestFocus(true);
//将焦点从用户名给密码
if(pf.getPassword().length & 0)
//按Enter键登录系统
else if(key == KeyEvent.VK_ESCAPE) {
//按ESC键退出系统
public void keyReleased (KeyEvent ke) {
//键盘释放监听
public void keyTyped (KeyEvent ke) {
//按键型监听
/**=======================================================================**
FocusListener 监听
**=======================================================================**
public void focusGained (FocusEvent fe) {
//焦点监听
if(fe.getSource() == cb)
//窗口最下方的功能提示
bott.setText(clue + "请选择操作员名称 ...");
if(fe.getSource() == pf)
bott.setText(clue + "请输入登录密码 ...");
if(fe.getSource() == bt1)
bott.setText(clue + "登录系统 ...");
if(fe.getSource() == bt2)
bott.setText(clue + "退出系统 ...");
public void focusLost (FocusEvent fe) {
//失去焦点监听
/**=======================================================================**
[## public static void main(String sd[]) {} ]:
:String sd[]
返回值 :无
修饰符 :public static
:程序入口
**=======================================================================**
public static void main(String sd[]) {
sunswing.setWindowStyle(sunini.getIniKey("Sys_style").charAt(0));
new FStartWindow ("pic/Login.gif", new Frame(), 1200);
new Login();
下面是错误提示
The [ Sys_style ] Key is not exist!!
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(Unknown Source)
at com.sunshine.login.Login.main(Login.java:313)
按赞数排序
启动tomcat的时候总是报错;
14:45:05 :Context initialization failed
java.lang.IllegalArgumentException
at org.springframework.asm.ClassReader.(Unknown Source)
at org.springframework.asm.C......答案就在这里:----------------------Hi,地球人,我是问答机器人小S,上面的内容就是我狂拽酷炫叼炸天的答案,除了赞同,你还有别的选择吗?
StringIndexOutOfBoundsException: String index out of range: 0,数组越界?java我不是很懂
数组越界,在你的main函数中,就是那个charAt(0)}

我要回帖

更多关于 求大神p图 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信